From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#8137: Requiring a file during bytecompilation runs that file's kill-emacs-hook. Date: Mon, 28 Feb 2011 10:28:12 +0100 Message-ID: <4D6B6AAC.5040409@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298894589 24649 80.91.229.12 (28 Feb 2011 12:03:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 12:03:09 +0000 (UTC) Cc: 8137@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 28 13:03:05 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu1oe-0000vG-AO for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 13:03:04 +0100 Original-Received: from localhost ([127.0.0.1]:53101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtzZt-0004lU-IT for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 04:39:41 -0500 Original-Received: from [140.186.70.92] (port=53286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtzX6-0003KF-FD for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 04:36:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtzX4-0001Qz-Lr for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 04:36:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtzX4-0001Qs-KP for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 04:36:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PtzPZ-0004Sh-QB; Mon, 28 Feb 2011 04:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Feb 2011 09:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8137 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8137-submit@debbugs.gnu.org id=B8137.129888530517105 (code B ref 8137); Mon, 28 Feb 2011 09:29:01 +0000 Original-Received: (at 8137) by debbugs.gnu.org; 28 Feb 2011 09:28:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtzOx-0004Rp-VI for submit@debbugs.gnu.org; Mon, 28 Feb 2011 04:28:24 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PtzOu-0004Rb-U1 for 8137@debbugs.gnu.org; Mon, 28 Feb 2011 04:28:22 -0500 Original-Received: (qmail invoked by alias); 28 Feb 2011 09:28:14 -0000 Original-Received: from 62-47-41-26.adsl.highway.telekom.at (EHLO [62.47.41.26]) [62.47.41.26] by mail.gmx.net (mp072) with SMTP; 28 Feb 2011 10:28:14 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19EzRQd5VxEXdoaRliQE/yUDWRPH9VFpdoDrGqxTy XH6uqZHzD4Oi3B User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Feb 2011 04:29:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44436 Archived-At: > After this change (from a few months ago, but I just discovered): > > revno: 101722 > committer: Glenn Morris > 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 Could this be also the cause of bug#8134: (Some special files were saved without asking) ? martin