[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don
From: |
Jim Porter |
Subject: |
bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients |
Date: |
Sun, 9 Oct 2022 16:32:28 -0700 |
To reproduce:
$ emacs -Q --daemon
$ emacsclient foo.txt
M-x save-buffers-kill-emacs
=> This Emacs session has clients; exit anyway?
I think that's unnecessary. Since we're in the last (only) client, we
can't accidentally kill other clients that we don't see right now (e.g.
ones in an SSH connection); they don't exist! Couldn't we just proceed
ahead without the prompt?
On the other hand, I think it *would* be useful to prompt if you're in
the last client, but there are other non-client frames. This can happen
if you start the main Emacs process without --daemon or if you use
--no-wait. For example:
$ emacs -Q --daemon
$ emacsclient foo.txt
$ emacsclient --no-wait -c bar.txt
;; From the first client:
M-x save-buffers-kill-emacs
=> This Emacs session has clients; exit anyway?
This is ok, except the prompt could be clearer. The real issue is that
the session has non-client frames that would get killed.
Attached is a patch to do this.
0001-Don-t-prompt-when-killing-an-Emacs-client-if-it-s-th.patch
Description: Text document
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients,
Jim Porter <=
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Eli Zaretskii, 2022/10/10
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Jim Porter, 2022/10/10
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Eli Zaretskii, 2022/10/10
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Jim Porter, 2022/10/10
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Eli Zaretskii, 2022/10/10
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Jim Porter, 2022/10/10
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Eli Zaretskii, 2022/10/10
- bug#58404: 29.0.50; [PATCH] When killing Emacs from the last client, don't warn about the session having clients, Jim Porter, 2022/10/10