Run kill-emacs-hook in batch mode, and on SIGINT in batch mode.
authorGlenn Morris <rgm@gnu.org>
Sat, 2 Oct 2010 02:30:11 +0000 (19:30 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 2 Oct 2010 02:30:11 +0000 (19:30 -0700)
commit9c524fcb89871b321844de7297a1baee0bde0376
tree8be5dae3c4db4410ab1be600696164b7a5bfb020
parent08b8ba9fae180c04036b748d5838a5768b013c1d
Run kill-emacs-hook in batch mode, and on SIGINT in batch mode.
See thread http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00795.html

* src/emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
(main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
in batch-mode.
(Fkill_emacs): Doc fix.  Also run the hook in batch mode.
(kill-emacs-hook): Doc fix.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use kill-emacs-hook to
delete tempfile if interrupted during compilation.

* doc/lispref/os.texi (Killing Emacs): Hook now runs in batch mode.

* etc/NEWS: Mention these changes.
doc/lispref/ChangeLog
doc/lispref/os.texi
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el
src/ChangeLog
src/emacs.c