GNU bug report logs -
#51377
Automatically exit server when it has no remaining clients
Previous Next
Reported by: Gregory Heytings <gregory <at> heytings.org>
Date: Sun, 24 Oct 2021 15:16:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 51377 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
>
> I'd find it quite surprising, since an errant edit to any open file
> would prevent the server from exiting after the last client stops. While
> leaving the server running isn't the worst thing ever (indeed, that's
> how it works now), I'd want the logic for when the server exits to be as
> simple as possible, i.e. "when there are no more clients, exit"
> (provided the user has confirmed as necessary). Having the server stick
> around because I forgot to save one file would surprise me, mainly
> because it would typically happen after, well, I forgot something.
>
I see. We have different mental models, I guess. From my viewpoint the
Emacs server should stay there until it's not necessary, and I'd be
surprised to be queried about what to do with buffers opened of processes
started in a frame I already closed when I want to close another frame.
But of course I do not object to have both behaviors.
>
> That's pretty much what I started with, actually. I've added more to
> that as I find corner cases, and as I try to make my code work well
> under different configurations so that it could merge into Emacs if
> there's interest.
>
I attach a patch for that other behavior, it works fine AFAICS.
[Option-to-stop-Emacs-server-when-last-client-exits.patch (text/x-diff, attachment)]
This bug report was last modified 3 years and 271 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.