]> git.eshelyaron.com Git - emacs.git/commit
Make 'server-stop-automatically' into a defcustom
authorJim Porter <jporterbugs@gmail.com>
Mon, 28 Nov 2022 06:21:10 +0000 (22:21 -0800)
committerJim Porter <jporterbugs@gmail.com>
Thu, 8 Dec 2022 05:54:00 +0000 (21:54 -0800)
commit153c67fa92eaad39410b1809ab9b125616bdc5c1
tree60a35c3c8aa66c5d04555c5c66439be62bb64fe8
parent5d68cc99177569a661da0ac75bb7df1ec4098fda
Make 'server-stop-automatically' into a defcustom

This changes the meaning of the (formerly internal) variable
'server-stop-automatically': it now always holds the requested
configuration, even when Emacs was not started as a daemon
(bug#59668).

* lisp/server.el (server-stop-automatically): Convert the variable to
a defcustom, and make the function simply set the defcustom.
(server-stop-automatically--timer): New variable.
(server-apply-stop-automatically): New function...
(server-stop, server-start): ... call it.
(server-save-buffers-kill-terminal): Adjust the conditions for
stopping automatically to account for the change of meaning for
'server-stop-automatically'.
(server-stop-automatically--handle-delete-frame): Remove unnecessary
test of the 'server-stop-automatically' option; this hook is only set
when it should do its job.
(server-stop-automatically--maybe-kill-emacs): Update docstring.

* doc/emacs/misc.texi (Emacs Server): Update documentation.
doc/emacs/misc.texi
lisp/server.el