From unknown Fri Sep 05 19:41:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16107: changing load-path during dumping Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2013 00:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16107 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16107@debbugs.gnu.org X-Debbugs-Original-To: GNU Bug Tracker Received: via spool by submit@debbugs.gnu.org id=B.13867234694845 (code B ref -1); Wed, 11 Dec 2013 00:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Dec 2013 00:57:49 +0000 Received: from localhost ([127.0.0.1]:42512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqY7Y-0001G5-Vi for submit@debbugs.gnu.org; Tue, 10 Dec 2013 19:57:49 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:40121) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqY7X-0001Fx-EV for submit@debbugs.gnu.org; Tue, 10 Dec 2013 19:57:47 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VqY7W-0003BJ-PW; Tue, 10 Dec 2013 19:57:46 -0500 From: Glenn Morris X-Spook: 22nd SAS Pine Gap COSCO propaganda Juiliett Class X-Ran: &|-I6c7~N/"j3^v,HlRFE:p:L6Re6rq+)o/CA0vQqpi,{.}*2a1tbcO}}fFhq11w5b^v]| X-Hue: cyan X-Attribution: GM Date: Tue, 10 Dec 2013 19:57:46 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.2 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) Package: emacs Version: 24.3 Quoth the elisp manual: Dumping Emacs uses a special value of `load-path'. If the value of `load-path' at the end of dumping is unchanged (that is, still the same special value), the dumped Emacs switches to the ordinary `load-path' value when it starts up, as described above. But if `load-path' has any other value at the end of dumping, that value is used for execution of the dumped Emacs also. I think this behaviour does not make sense, and that it would be better to remove it. Motivation: AFAICS, the only way load-path can change during dumping is if you change it in a site-load/site-init file. The only thing that you might sensibly want to do is add an element at the front. Firstly, there is a better way to do this: use configure's --enable-locallisppath argument. Secondly, it will break your Emacs. Dumping occurs before Emacs is installed, so dump_path contains elements that refers to the *source* directory (ie, PATH_DUMPLOADSEARCH). Your addition gets added to these elements. After `make install', Emacs normally switches to a load-path based on the *installation* directory (ie, PATH_LOADSEARCH). If it notices that the load-path has changed from dump_path, it won't do this. So if you run `make install' and delete the source directory, your Emacs won't start, because it will still be looking for source/lisp. (IIRC, the uninstalled Emacs used to have a load-path that also contained the installation directories if they existed. This was wrong and has been removed, but it does mean that changing load-path during dumping probably did not use to break your Emacs. But --enable-locallisppath is better anyway.) So I suggest: 1) In src/lread.c, removing "dump_path" and associated code. 2) In loadup.el, if load-path changes during the loading of site-load/site-init, print a warning that the changes will be ignored in the dumped Emacs, and recommending use of --enable-locallisppath if the changes were intended to be permanent. Any objections? From unknown Fri Sep 05 19:41:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16107: changing load-path during dumping Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2013 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16107 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 16107@debbugs.gnu.org Received: via spool by 16107-submit@debbugs.gnu.org id=B16107.138677341128623 (code B ref 16107); Wed, 11 Dec 2013 14:51:01 +0000 Received: (at 16107) by debbugs.gnu.org; 11 Dec 2013 14:50:11 +0000 Received: from localhost ([127.0.0.1]:43094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vql74-0007Ra-O7 for submit@debbugs.gnu.org; Wed, 11 Dec 2013 09:50:10 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:49788) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vql72-0007RS-Uj for 16107@debbugs.gnu.org; Wed, 11 Dec 2013 09:50:09 -0500 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id rBBEo6nj017271; Wed, 11 Dec 2013 09:50:07 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C016AAE321; Wed, 11 Dec 2013 09:50:07 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Wed, 11 Dec 2013 09:50:07 -0500 In-Reply-To: (Glenn Morris's message of "Tue, 10 Dec 2013 19:57:46 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4788=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4788> : inlines <302> : streams <1089097> : uri <1620897> X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.5 (-) > I think this behaviour does not make sense, and that it would be better > to remove it. [...] > Any objections? No, I think we can drop it. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 13 13:25:50 2013 Received: (at control) by debbugs.gnu.org; 13 Dec 2013 18:25:50 +0000 Received: from localhost ([127.0.0.1]:48806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrXQr-0002rl-Us for submit@debbugs.gnu.org; Fri, 13 Dec 2013 13:25:50 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:39359) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrXQp-0002rc-RS for control@debbugs.gnu.org; Fri, 13 Dec 2013 13:25:48 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VrXQp-0002We-Kf for control@debbugs.gnu.org; Fri, 13 Dec 2013 13:25:47 -0500 Date: Fri, 13 Dec 2013 13:25:47 -0500 Message-Id: Subject: control message for bug 16107 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 16107 24.4