unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8137: Requiring a file during bytecompilation runs that file's kill-emacs-hook.
@ 2011-02-28  5:13 Juanma Barranquero
  2011-02-28  9:28 ` martin rudalics
  2011-02-28 17:23 ` Chong Yidong
  0 siblings, 2 replies; 10+ messages in thread
From: Juanma Barranquero @ 2011-02-28  5:13 UTC (permalink / raw)
  To: 8137

Package: emacs
Version: 24.0.50


After this change (from a few months ago, but I just discovered):

revno: 101722
committer: Glenn Morris <rgm@gnu.org>
branch nick: trunk
timestamp: Fri 2010-10-01 19:30:11 -0700
message:
  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.


compiling code requiring a file that sets kill-emacs-hook runs that
hook, for example

;;; bug.el
(require 'saveplace)
;;; end of bug.el

emacs -batch -Q -f batch-byte-compile bug.el
Wrote c:/emacs/repo/bug.elc
Wrote c:/my_home/.emacs-places


    Juanma





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-03-06  0:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28  5:13 bug#8137: Requiring a file during bytecompilation runs that file's kill-emacs-hook Juanma Barranquero
2011-02-28  9:28 ` martin rudalics
2011-02-28 12:27   ` Juanma Barranquero
2011-02-28 14:14     ` martin rudalics
2011-02-28 17:23 ` Chong Yidong
2011-03-03 17:18   ` Juanma Barranquero
2011-03-05 20:24     ` Chong Yidong
2011-03-05 22:34       ` Juanma Barranquero
2011-03-05 23:58         ` Chong Yidong
2011-03-06  0:58           ` Juanma Barranquero

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).