GNU bug report logs -
#51993
29.0.50; [PATCH] Killing emacsclient terminal with `server-stop-automatically' doesn't prompt to save files
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Sat, 20 Nov 2021 04:30:01 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #47 received at 51993 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 11/29/2021 5:40 AM, Gregory Heytings wrote:
>
> I'm in the process of implementing something that should satisfy
> everyone, but it's not finished yet.
Thanks. Hopefully my proposal helps to explain more precisely my mental
model and how I'd like things to work. If there's anything that's not
clear, just let me know and I'll try to elaborate on it.
In case it would help, I've also attached the relevant bits of my Emacs
configuration, which implements the Explicit Shutdown behavior I've
described. Overall, it's similar to the first patch I posted in this
bug, but it's usable in Emacs 27+ (maybe even earlier).
However, I think it has (at least) one problem: if `server-buffer-done'
(indirectly called by `server-edit' / `C-x #') deletes the last client,
it doesn't stop the daemon. I haven't had a chance to look into this in
detail yet though. I think the most consistent behavior would be to stop
the daemon in this case, since then the logic is simply "stop the daemon
when the last client would be deleted", and we don't have to worry about
exceptions to that rule.
[server-advice.el (text/plain, attachment)]
This bug report was last modified 2 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.