aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2010-10-01 19:30:11 -0700
committerGlenn Morris2010-10-01 19:30:11 -0700
commit9c524fcb89871b321844de7297a1baee0bde0376 (patch)
tree8be5dae3c4db4410ab1be600696164b7a5bfb020 /doc
parent08b8ba9fae180c04036b748d5838a5768b013c1d (diff)
downloademacs-9c524fcb89871b321844de7297a1baee0bde0376.tar.gz
emacs-9c524fcb89871b321844de7297a1baee0bde0376.zip
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/os.texi1
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index ec065e9ce76..dfa070e70b3 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12010-10-02 Glenn Morris <rgm@gnu.org>
2
3 * os.texi (Killing Emacs): Hook now runs in batch mode.
4
12010-09-18 Stefan Monnier <monnier@iro.umontreal.ca> 52010-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * text.texi (Special Properties): Clarify when modification-hooks run. 7 * text.texi (Special Properties): Clarify when modification-hooks run.
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index dd827234272..8548ce05047 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -577,7 +577,6 @@ does not run the remaining functions in this hook. Calling
577This variable is a normal hook; once @code{save-buffers-kill-emacs} is 577This variable is a normal hook; once @code{save-buffers-kill-emacs} is
578finished with all file saving and confirmation, it calls 578finished with all file saving and confirmation, it calls
579@code{kill-emacs} which runs the functions in this hook. 579@code{kill-emacs} which runs the functions in this hook.
580@code{kill-emacs} does not run this hook in batch mode.
581 580
582@code{kill-emacs} may be invoked directly (that is not via 581@code{kill-emacs} may be invoked directly (that is not via
583@code{save-buffers-kill-emacs}) if the terminal is disconnected, or in 582@code{save-buffers-kill-emacs}) if the terminal is disconnected, or in