emacs-devel
[Top][All Lists]
Advanced

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

Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SI


From: grischka
Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM
Date: Thu, 05 Feb 2009 14:31:50 +0100
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)

Stefan Monnier wrote:
Yes, I think this is the right way to do it.  The only change I'd like
to do is to do the autosaves as before in the signal handler before
passing on the signal through the normal input handling (i.e. before
running kill-emacs-hook).

Well, in an ideal world the signal handler could just set the quit-flag
which would interrupt running lisp code and in consequence allow the
sigterm EVENT being handled reliably always, such that things like
autosave could be done from lisp as well.

I don't know however whether emacs' "quit-world" is ideal enough for
this scenario.





reply via email to

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