From 9136c064d66a1d4ea69472ffe25662a8874f7ba6 Mon Sep 17 00:00:00 2001 From: Harald Hanche-Olsen Date: Fri, 4 Jun 2021 11:09:46 +0200 Subject: Add a new `server-edit-abort' command * doc/emacs/misc.texi (Invoking emacsclient): Document it (bug#11358). * lisp/server.el (server-edit): Mention it in the doc string. (server-edit-abort): New command. Copyright-paperwork-exempt: yes --- doc/emacs/misc.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/emacs/misc.texi') diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index c8027792505..aed9fa9c665 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -1864,6 +1864,12 @@ it to exit. Programs that use @env{EDITOR} usually wait for the editor---in this case @command{emacsclient}---to exit before doing something else. +@findex server-edit-abort + If you want to abandon the edit instead, use the @kbd{M-x +server-edit-abort} command. This sends a message back to the +@command{emacsclient} program, telling it to exit, but doesn't save +any files. + You can also call @command{emacsclient} with multiple file name arguments: @samp{emacsclient @var{file1} @var{file2} ...} tells the Emacs server to visit @var{file1}, @var{file2}, and so forth. Emacs -- cgit v1.2.3