From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#8137: Requiring a file during bytecompilation runs that file's kill-emacs-hook. Date: Mon, 28 Feb 2011 12:23:03 -0500 Message-ID: <8762s413bc.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298914656 17581 80.91.229.12 (28 Feb 2011 17:37:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 17:37:36 +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 18:37:29 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 1Pu72H-0001Ef-2X for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 18:37:29 +0100 Original-Received: from localhost ([127.0.0.1]:41401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu72G-0007Q5-Gu for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 12:37:28 -0500 Original-Received: from [140.186.70.92] (port=38730 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu71c-00076z-8Y for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 12:36:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu71a-000698-Vd for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 12:36:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu71a-00068o-TU for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 12:36:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pu6pG-000882-5I; Mon, 28 Feb 2011 12:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong 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 17:24:02 +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.129891379331180 (code B ref 8137); Mon, 28 Feb 2011 17:24:02 +0000 Original-Received: (at 8137) by debbugs.gnu.org; 28 Feb 2011 17:23:13 +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 1Pu6oS-00086r-DE for submit@debbugs.gnu.org; Mon, 28 Feb 2011 12:23:12 -0500 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu6oQ-00086e-1i for 8137@debbugs.gnu.org; Mon, 28 Feb 2011 12:23:10 -0500 Original-Received: from furball (dhcp128036014052.central.yale.edu [128.36.14.52]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p1SHN3bB004688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 28 Feb 2011 12:23:04 -0500 Original-Received: by furball (Postfix, from userid 1000) id D286E16016E; Mon, 28 Feb 2011 12:23:03 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Mon, 28 Feb 2011 06:13:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Feb 2011 12:24: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:44445 Archived-At: Juanma Barranquero writes: > 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 This doesn't seem like it's related to Glenn's change. From a brief look at saveplace.el, it looks like the problem isn't limited to byte compilation: the saveplace file would be written anytime Emacs is run noninteractively while it's loaded (e.g. from a user's init file). Probably saveplace.el needs to be changed so that it doesn't do anything when noninteractive. There are nine other places in Emacs that add to kill-emacs-hook at top-level, which ought to be checked too.