diff options
| author | Eli Zaretskii | 2021-11-11 13:12:50 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2021-11-11 13:12:50 +0200 |
| commit | 997ca88ef44f5833f1a9a55fc3be863e7cc07a4b (patch) | |
| tree | fd8d5cf02bf8d69a12d0313243a81a2bea3eddd6 | |
| parent | 51e3625deceacb21186e8caa7c664d584f60f723 (diff) | |
| download | emacs-997ca88ef44f5833f1a9a55fc3be863e7cc07a4b.tar.gz emacs-997ca88ef44f5833f1a9a55fc3be863e7cc07a4b.zip | |
; * lisp/server.el (server-stop-automatically): Doc fix.
| -rw-r--r-- | lisp/server.el | 28 |
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 | ||
| 1796 | When ARG is 'empty, the server is stopped when it has no remaining | 1796 | If ARG is the symbol `empty', stop the server when it has no |
| 1797 | clients, no remaining unsaved file-visiting buffers, and no | 1797 | remaining clients, no remaining unsaved file-visiting buffers, |
| 1798 | running processes with a query-on-exit flag. | 1798 | and no running processes with a `query-on-exit' flag. |
| 1799 | 1799 | ||
| 1800 | When ARG is 'delete-frame, the user is asked when the last frame is | 1800 | If ARG is the symbol `delete-frame', ask the user when the last |
| 1801 | being closed whether each unsaved file-visiting buffer must be | 1801 | frame is deleted whether each unsaved file-visiting buffer must |
| 1802 | saved and each running process with a query-on-exit flag can be | 1802 | be saved and each running process with a `query-on-exit' flag |
| 1803 | stopped, and if so, the server itself is stopped. | 1803 | can be stopped, and if so, stop the server itself. |
| 1804 | 1804 | ||
| 1805 | When ARG is 'kill-terminal, the user is asked when the last frame | 1805 | If ARG is the symbol `kill-terminal', ask the user when the |
| 1806 | is being close with \\[save-buffers-kill-terminal] \ | 1806 | terminal is killed with \\[save-buffers-kill-terminal] \ |
| 1807 | whether each unsaved file-visiting | 1807 | whether each unsaved file-visiting |
| 1808 | buffer must be saved and each running process with a query-on-exit | 1808 | buffer must be saved and each running process with a `query-on-exit' |
| 1809 | flag can be stopped, and if so, the server itself is stopped. | 1809 | flag can be stopped, and if so, stop the server itself. |
| 1810 | 1810 | ||
| 1811 | This function is meant to be put in init files." | 1811 | Any other value of ARG will cause this function to signal an error. |
| 1812 | |||
| 1813 | This 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 |