From: "Jan Djärv" <jan.h.d@swipnet.se>
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 18:18:07 +0200 [thread overview]
Message-ID: <4BE19A3F.2050202@swipnet.se> (raw)
In-Reply-To: <jwv8w7ypjbx.fsf-monnier+emacs@gnu.org>
Stefan Monnier skrev 2010-05-05 16.00:
>>> BTW, why use --chdir rather than save the default-directories in the
>>> session file if you think that it should work even without desktop.el?
>> I doesn't work with desktop. desktop adds itself to after-init-hook, and
>> that is run before session restore. So desktop will load my desktop in
>> $HOME before default-directories are restored.
>
> I don't understand what you're saying here. For one, I was talking
> about the "no desktop" case,
I took "even without" to mean "with an without".
> and second I don't understand if you're
> talking about some accidental problem in the current way desktop works
> or a fundamental limitation in the way desktop can work.
It is how the current code works. It can be fixed.
>
>> Ideally we would just load the session specific file on restart, but
>> desktop has some cleanups it does in desktop-read after load.
>
> I don't know what you're talking about.
;; `desktop-create-buffer' puts buffers at end of the buffer list.
;; We want buffers existing prior to evaluating the desktop (and
;; not reused) to be placed at the end of the buffer list, so we
;; move them here.
(mapc 'bury-buffer
(nreverse (cdr (memq desktop-first-buffer (nreverse
(buffer-list))))))
(switch-to-buffer (car (buffer-list)))
(run-hooks 'desktop-delay-hook)
(setq desktop-delay-hook nil)
(run-hooks 'desktop-after-read-hook)
Jan D.
next prev parent reply other threads:[~2010-05-05 16:18 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
2010-05-05 7:21 ` Jan Djärv
2010-05-05 14:00 ` Stefan Monnier
2010-05-05 16:18 ` Jan Djärv [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BE19A3F.2050202@swipnet.se \
--to=jan.h.d@swipnet.se \
--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 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.