From: Christoph Ruegge <chrueg@gmail.com>
To: "Jan D." <jan.h.d@swipnet.se>
Cc: "18375@debbugs.gnu.org" <18375@debbugs.gnu.org>
Subject: bug#18375: 24.4.50; Emacs hangs X session manager logout in certain cases
Date: Wed, 3 Sep 2014 11:53:28 +0200 [thread overview]
Message-ID: <CAOB5ahs2w9yQuN=Gscr+06dzCpvua0UO06guREzgSV=wA_Gw0g@mail.gmail.com> (raw)
In-Reply-To: <1B3078FA-936D-4F4A-9187-1D6732B03763@swipnet.se>
>>> If I may add, the current behaviour is rather weird to begin with. The
>>> SM integration's purpose is to cleanly shutdown Emacs on logout, so it
>>> should be tied to the entire process and not to a particular terminal.
>
>
> No. The reason is to have Emacs restarted when the user logs in again.
> Logout is no problem, the X connection will go away.
But that is not necessarily the only function of a session manager
(some SMs aren't even set to restart applications by default). They
also give applications the opportunity to query the user about unsaved
changes and such things. Now Emacs does not do that, but it's fairly
simple to do implement using `emacs-save-session-functions'.
Additionally, the only reason for me to log out is usually to restart
the computer, so Emacs will get killed anyway. Having the opportunity
to query about potential data loss may be useful.
That being said, I realize that my patch is rather intrusive and that
the more minimal solution of the daemon not using the SM at all is
better, especially since the daemon _can_ survive losing the X
connection (maybe in case of an X crash), which would lead to
unexpected behaviour in the next session. So one simply has to rely on
something like auto-save to prevent data loss.
Still, there's a corner case of the same bug occuring in non-daemon
mode, since it's technically possible to close the first terminal
after using e.g. "emacsclient -t", though that is likely a rather rare
situation.
next prev parent reply other threads:[~2014-09-03 9:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-31 11:56 bug#18375: 24.4.50; Emacs hangs X session manager logout in certain cases Christoph Ruegge
2014-09-01 11:40 ` Christoph Ruegge
2014-09-01 16:54 ` Christoph Ruegge
2014-09-02 18:25 ` Stefan Monnier
2014-09-02 20:56 ` Jan D.
2014-09-03 0:06 ` Stefan Monnier
2014-09-03 5:02 ` Jan Djärv
2014-09-03 9:53 ` Christoph Ruegge [this message]
2014-09-03 18:40 ` Jan Djärv
2014-09-03 18:51 ` Christoph Ruegge
2014-09-04 5:40 ` Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOB5ahs2w9yQuN=Gscr+06dzCpvua0UO06guREzgSV=wA_Gw0g@mail.gmail.com' \
--to=chrueg@gmail.com \
--cc=18375@debbugs.gnu.org \
--cc=jan.h.d@swipnet.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.