]> git.eshelyaron.com Git - emacs.git/commit
Don't explicitly delete client frames when killing Emacs anyway
authorJim Porter <jporterbugs@gmail.com>
Mon, 21 Nov 2022 19:47:08 +0000 (11:47 -0800)
committerJim Porter <jporterbugs@gmail.com>
Fri, 25 Nov 2022 01:33:53 +0000 (17:33 -0800)
commit28c444f72a9843ce335032db1fa0f484dfeb4833
tree65a8f51f8b1026dbd321d00512acc494e65016a7
parent339893f2e3b5cb7263ba5204e083d5605df72446
Don't explicitly delete client frames when killing Emacs anyway

This eliminates a useless error prompt when killing Emacs from a
client frame when there are no other frames (bug#58877).

* lisp/server.el (server-running-external): New error.
(server--file-name): New function...
(server-eval-at): ... use it.
(server-start): Factor out server stopping code into...
(server-stop): ... here.
(server-force-stop): Use 'server-stop', and tell it not to delete
frames.

* test/lisp/server-tests.el
(server-tests/server-force-stop/keeps-frames): New test.
lisp/server.el
test/lisp/server-tests.el