GNU bug report logs - #14120
invalid load-history in emacsen that CANNOT_DUMP

Previous Next

Package: emacs;

Reported by: BT Templeton <bt <at> hcoop.net>

Date: Mon, 1 Apr 2013 22:55:01 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 27.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: BT Templeton <bt <at> hcoop.net>
Subject: bug#14120: closed (Re: bug#14120: invalid load-history in emacsen
 that CANNOT_DUMP)
Date: Fri, 06 Sep 2019 00:10:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#14120: invalid load-history in emacsen that CANNOT_DUMP

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 14120 <at> debbugs.gnu.org.

-- 
14120: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14120
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 14120-done <at> debbugs.gnu.org
Subject: Re: bug#14120: invalid load-history in emacsen that CANNOT_DUMP
Date: Thu, 05 Sep 2019 20:09:52 -0400
Version: 27.1

The CANNOT_DUMP option no longer exists, and Emacs now uses a portable
dumper by default.

[Message part 3 (message/rfc822, inline)]
From: BT Templeton <bt <at> hcoop.net>
To: bug-gnu-emacs <at> gnu.org
Subject: invalid load-history in emacsen that CANNOT_DUMP
Date: Mon, 01 Apr 2013 18:47:09 -0400
"loadup.el" sets `current-load-list' to nil, apparently so that it will
have that value when restarting a dumped emacs. However, when Emacs is
built with CANNOT_DUMP defined, "loadup.el" evaluates `top-level'
instead of dumping. This can lead to invalid entries in `load-history'
if something is defined, required, etc. during evaluation of that form.

For example, load-history will contain `((require . tetris))' if
~/.emacs defines this hook:

(add-hook 'lisp-interaction-mode-hook
          (lambda () (require 'tetris)))

For `require', the problem can be fixed by also setting
`load-in-progress' to nil in "loadup.el", but this doesn't fix the bug
for other functions that change the load history.

-- 
Inteligenta persono lernas la lingvon Esperanton rapide kaj facile.
Esperanto estas moderna, kultura lingvo por la mondo. Simpla, fleksebla,
belsona, Esperanto estas la praktika solvo de la problemo de universala
interkompreno. Lernu la interlingvon Esperanton!



This bug report was last modified 5 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.