Function: server-edit
server-edit is an interactive and byte-compiled function defined in
server.el.gz.
Signature
(server-edit &optional ARG)
Documentation
Switch to next server editing buffer; say "Done" for current buffer.
If a server buffer is current, it is marked "done" and optionally saved. The buffer is also killed if it did not exist before the clients asked for it. When all of a client's buffers are marked as "done", the client is notified.
Temporary files such as MH <draft> files are always saved and backed up,
no questions asked. (The variable make-backup-files, if nil, still
inhibits a backup; you can set it locally in a particular buffer to
prevent a backup for it.) The variable server-temp-file-regexp controls
which filenames are considered temporary.
If invoked with a prefix argument, or if there is no server process running,
starts server process and that is all. Invoked by C-x # (server-edit).
To abort an edit instead of saying "Done", use M-x server-edit-abort (server-edit-abort).
Probably introduced at or before Emacs version 18.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/server.el.gz
(defun server-edit (&optional arg)
"Switch to next server editing buffer; say \"Done\" for current buffer.
If a server buffer is current, it is marked \"done\" and optionally saved.
The buffer is also killed if it did not exist before the clients asked for it.
When all of a client's buffers are marked as \"done\", the client is notified.
Temporary files such as MH <draft> files are always saved and backed up,
no questions asked. (The variable `make-backup-files', if nil, still
inhibits a backup; you can set it locally in a particular buffer to
prevent a backup for it.) The variable `server-temp-file-regexp' controls
which filenames are considered temporary.
If invoked with a prefix argument, or if there is no server process running,
starts server process and that is all. Invoked by \\[server-edit].
To abort an edit instead of saying \"Done\", use \\[server-edit-abort]."
(interactive "P")
(cond
((or arg
(not server-process)
(memq (process-status server-process) '(signal exit)))
(server-mode 1))
(server-clients (apply #'server-switch-buffer (server-done)))
(t (message "No server editing buffers exist"))))