[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100117: Run kill-emacs when exit

From: Stefan Monnier
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:24:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> 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)

It looks perfectly harmless to run it when restoring a session.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]