From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#8137: Requiring a file during bytecompilation runs that file's kill-emacs-hook. Date: Mon, 28 Feb 2011 06:13:06 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298871424 9650 80.91.229.12 (28 Feb 2011 05:37:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 05:37:04 +0000 (UTC) To: 8137@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 28 06:36:59 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 1Ptvn0-00007S-Le for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 06:36:59 +0100 Original-Received: from localhost ([127.0.0.1]:58895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ptvn0-0007GN-62 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 00:36:58 -0500 Original-Received: from [140.186.70.92] (port=54419 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ptvmq-0007FP-Cj for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 00:36:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ptvmp-0006WR-7c for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 00:36:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ptvmp-0006WF-67 for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 00:36:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PtvRm-0006b3-8L; Mon, 28 Feb 2011 00:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero 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 05:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8137 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs Bug Tracker Original-Received: via spool by submit@debbugs.gnu.org id=B.129887006225290 (code B ref -1); Mon, 28 Feb 2011 05:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Feb 2011 05:14:22 +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 1PtvR7-0006Zr-1K for submit@debbugs.gnu.org; Mon, 28 Feb 2011 00:14:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtvR5-0006Ze-JL for submit@debbugs.gnu.org; Mon, 28 Feb 2011 00:14:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtvQz-0003pm-Gf for submit@debbugs.gnu.org; Mon, 28 Feb 2011 00:14:14 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:33253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtvQz-0003pc-EP for submit@debbugs.gnu.org; Mon, 28 Feb 2011 00:14:13 -0500 Original-Received: from [140.186.70.92] (port=52843 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtvQy-0006Pj-Bp for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 00:14:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtvQx-0003pQ-AB for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 00:14:12 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:44663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtvQx-0003pM-5C for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 00:14:11 -0500 Original-Received: by yxt33 with SMTP id 33so1810732yxt.0 for ; Sun, 27 Feb 2011 21:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=VQ+APE7ZmLrvCt4Ew3/s20hUtZxWlsPvVvjAyHm4zCs=; b=UEyGOfgJHQFQrc4hhqO86Lmai2uCGfLYIdAv1kX4qoSm5KQrw8WSAENPJdC6+QWJMo tGRYkjxpgPoIazQVfGFF7V8IaYIM5kErdsOk4b06gaH8L8ABFSkoDrBFfIz1cRTsl0B9 fpLxMu9K6VkN+OZMIbmtlOjJ2YNorTWVYD0xE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=vdoVEK942zmeall0xgfz2cQ39wCretHJyPafWbX7Qt5cqWVTmGKUA8hoj6iz3X3lO6 D0kLBCHND0kdJ58P6Aa/gnkDE3SxSb/lqp5b+APQiJNG8EVt/F45xxaX+ctW2PCbSZWG +4/cL7hBUqnmwNbD+6ZVZHsOvEuoFju9XRUr8= Original-Received: by 10.150.91.14 with SMTP id o14mr6620452ybb.333.1298870050519; Sun, 27 Feb 2011 21:14:10 -0800 (PST) Original-Received: by 10.147.35.6 with HTTP; Sun, 27 Feb 2011 21:13:06 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Feb 2011 00:15:02 -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:44435 Archived-At: Package: emacs Version: 24.0.50 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 =C2=A0 =C2=A0 Juanma