emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs daemon doesn't terminate on SIGTERM any more


From: Glenn Morris
Subject: Re: Emacs daemon doesn't terminate on SIGTERM any more
Date: Sat, 23 Oct 2010 14:40:40 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Jan Djärv wrote:

> This was done so that kill-emacs-hook is run.  For example, desktop.el
> will then save its desktop when logging out from Gnome/KDE.
>
> What Emacs needs is some sort of notion of when user interaction is
> not OK. For SIGTERM it is almost never ok, as it might be the window
> manager/system/whatever that is shutting down.  Even desktop.el will
> try to ask questions sometimes (i.e. desktop-save is set but there is
> no desktop file yet), which is annoying.  Maybe introduce some
> interaction-ok-p predicate?

Things that might ask questions should be on kill-emacs-query-functions,
not kill-emacs-hook, shouldn't they?



reply via email to

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