]> git.eshelyaron.com Git - emacs.git/commit
Make killing a non-last client work the same no matter the auto-stop setting
authorJim Porter <jporterbugs@gmail.com>
Fri, 2 Dec 2022 20:14:50 +0000 (12:14 -0800)
committerJim Porter <jporterbugs@gmail.com>
Sun, 4 Dec 2022 22:14:09 +0000 (14:14 -0800)
commit4bcdb1cc65bf779b6479f99a7aa767ab83b3bae1
tree14d92fbf9ddcf081b007ad73b80bb6ef311a7c4d
parenta27f61f6f48762b43810558b38cf6a6ab1ea7673
Make killing a non-last client work the same no matter the auto-stop setting

Previously, if 'server-stop-automatically' was configured for
'kill-terminal' or 'delete-frame', killing a client via
'save-buffers-kill-terminal' wouldn't prompt about the saving files in
the client's buffer list (as it does when not using those settings).
This change ensures that those settings only apply when killing the
last client, as described in the manual (bug#51993).

* lisp/server.el (server-save-buffers-kill-terminal): Handle
'server-stop-automatically' behavior in this function, rather than
calling 'server-stop-automatically--handle-delete-frame'.
lisp/server.el