aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2021-11-11 13:12:50 +0200
committerEli Zaretskii2021-11-11 13:12:50 +0200
commit997ca88ef44f5833f1a9a55fc3be863e7cc07a4b (patch)
treefd8d5cf02bf8d69a12d0313243a81a2bea3eddd6
parent51e3625deceacb21186e8caa7c664d584f60f723 (diff)
downloademacs-997ca88ef44f5833f1a9a55fc3be863e7cc07a4b.tar.gz
emacs-997ca88ef44f5833f1a9a55fc3be863e7cc07a4b.zip
; * lisp/server.el (server-stop-automatically): Doc fix.
-rw-r--r--lisp/server.el28
1 files changed, 15 insertions, 13 deletions
diff --git a/lisp/server.el b/lisp/server.el
index deaaf07da84..2f003a380a1 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -1791,24 +1791,26 @@ only these files will be asked to be saved."
1791 1791
1792;;;###autoload 1792;;;###autoload
1793(defun server-stop-automatically (arg) 1793(defun server-stop-automatically (arg)
1794 "Automatically stop server when possible. 1794 "Automatically stop server as specified by ARG.
1795 1795
1796When ARG is 'empty, the server is stopped when it has no remaining 1796If ARG is the symbol `empty', stop the server when it has no
1797clients, no remaining unsaved file-visiting buffers, and no 1797remaining clients, no remaining unsaved file-visiting buffers,
1798running processes with a query-on-exit flag. 1798and no running processes with a `query-on-exit' flag.
1799 1799
1800When ARG is 'delete-frame, the user is asked when the last frame is 1800If ARG is the symbol `delete-frame', ask the user when the last
1801being closed whether each unsaved file-visiting buffer must be 1801frame is deleted whether each unsaved file-visiting buffer must
1802saved and each running process with a query-on-exit flag can be 1802be saved and each running process with a `query-on-exit' flag
1803stopped, and if so, the server itself is stopped. 1803can be stopped, and if so, stop the server itself.
1804 1804
1805When ARG is 'kill-terminal, the user is asked when the last frame 1805If ARG is the symbol `kill-terminal', ask the user when the
1806is being close with \\[save-buffers-kill-terminal] \ 1806terminal is killed with \\[save-buffers-kill-terminal] \
1807whether each unsaved file-visiting 1807whether each unsaved file-visiting
1808buffer must be saved and each running process with a query-on-exit 1808buffer must be saved and each running process with a `query-on-exit'
1809flag can be stopped, and if so, the server itself is stopped. 1809flag can be stopped, and if so, stop the server itself.
1810 1810
1811This function is meant to be put in init files." 1811Any other value of ARG will cause this function to signal an error.
1812
1813This function is meant to be called from the user init file."
1812 (when (daemonp) 1814 (when (daemonp)
1813 (setq server-stop-automatically arg) 1815 (setq server-stop-automatically arg)
1814 (cond 1816 (cond