unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100117: Run kill-emacs when exiting for display closed or SIGTERM/HUP.
Date: Wed, 05 May 2010 14:17:22 +0900	[thread overview]
Message-ID: <874oinx6zh.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <jwviq73r00a.fsf-monnier+emacs@gnu.org>

Stefan Monnier writes:

 > That argues for a change in desktop.el to make it behave better with
 > session management.

Maybe.  The scheme I proposed (a thunk library in .emacs.d/session/)
will work fine with desktop.el as it is.  Modulo this problem, that is:

 > > If I start emacs in /some/dir without a desktop file and have
 > > desktop-mode enabled, there will be no desktop saved when I log
 > > out.

This is a bug in desktop.el.  .emacs.d/session/ is a reasonable place
to put the desktop file for cases where there's no opportunity for
user interaction, or the user has expressed a preference for no
interaction (which is a very plausible preference with a good session
manager).  Name it .emacs.desktop.CLIENT-ID or so for uniqueness.

 > > When the session manager then restarts Emacs in $HOME it will
 > > read my desktop file in $HOME.  That is a bug also.

My scheme deals with that issue without changing desktop.el.  I think
that is important, because you're likely to (a) break stuff for CLI
users, and (b) there's no desktop manager spec on the table yet, so
you're likely to end up changing everything a few times as the spec
becomes clearer.  The thunk gives you a way to experiment with
interacting with the GUI session manager without horking desktop.el.

Note that my scheme is also upward-compatible with the kinds of
changes you are proposing to desktop.el -- the desktop file just moves
to .emacs.d/session/.  CLI users will still need some way to select
sessions.  One possibility would be the traditional .emacs.desktop
file method, another would be for desktop to look in .emacs.d/session/
for "active" sessions and offer the user a menu at startup.  I suspect
CLI users will detest the menu idea, but it's just proof of concept.

I don't actually advocate my scheme -- I haven't time to think
carefully about it or implement it for Emacs.  But it seems to me that
you have to do at least that well.




  reply	other threads:[~2010-05-05  5:17 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1O8efK-0003y3-Sb@internal.in.savannah.gnu.org>
2010-05-02 19:24 ` [Emacs-diffs] /srv/bzr/emacs/trunk r100117: Run kill-emacs when exiting for display closed or SIGTERM/HUP Stefan Monnier
2010-05-02 20:53   ` Jan Djärv
2010-05-03  0:55     ` Stefan Monnier
2010-05-03  8:21       ` Jan D.
2010-05-03 17:43         ` Stefan Monnier
2010-05-03 18:08           ` Jan Djärv
2010-05-04  2:38             ` Stefan Monnier
2010-05-04  7:59               ` Jan Djärv
2010-05-04 11:49                 ` Stephen J. Turnbull
2010-05-04 13:03                   ` Jan D.
2010-05-04 13:48                 ` Stefan Monnier
2010-05-04 14:42                   ` Jan D.
2010-05-04  3:03             ` Stephen J. Turnbull
2010-05-04  8:06               ` Jan Djärv
2010-05-04 11:33                 ` Stephen J. Turnbull
2010-05-04 12:51                   ` Jan D.
2010-05-04 13:54                     ` Stefan Monnier
2010-05-04 14:26                       ` Jan D.
2010-05-04 18:50                         ` Stefan Monnier
2010-05-05  5:17                           ` Stephen J. Turnbull [this message]
2010-05-05  7:21                           ` Jan Djärv
2010-05-05 14:00                             ` Stefan Monnier
2010-05-05 16:18                               ` Jan Djärv
2010-05-05 18:24                                 ` Stefan Monnier
2010-05-04 16:45                 ` Juri Linkov
2010-05-04 18:50                   ` Jan Djärv
2010-05-04 19:55                     ` Juri Linkov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874oinx6zh.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).