all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14120: invalid load-history in emacsen that CANNOT_DUMP
@ 2013-04-01 22:47 BT Templeton
  2013-04-03 18:29 ` Stefan Monnier
  2020-02-16 20:55 ` bug#14120: [Robert Weiner] Emacs history selection non-string arguments causing failures for a long time Stefan Monnier
  0 siblings, 2 replies; 15+ messages in thread
From: BT Templeton @ 2013-04-01 22:47 UTC (permalink / raw)
  To: 14120

"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!





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-02-18 13:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-01 22:47 bug#14120: invalid load-history in emacsen that CANNOT_DUMP BT Templeton
2013-04-03 18:29 ` Stefan Monnier
2019-09-06  0:09   ` Glenn Morris
2020-02-17 13:34   ` Andrés Ramírez
2020-02-17 15:09     ` Stefan Monnier
2020-02-17 17:14       ` andrés ramírez
2020-02-17 17:46         ` Stefan Monnier
2020-02-18  1:01           ` andrés ramírez
2020-02-18  1:34             ` andrés ramírez
2020-02-18 13:40               ` Stefan Monnier
2020-02-18 13:50                 ` andrés ramírez
2020-02-16 20:55 ` bug#14120: [Robert Weiner] Emacs history selection non-string arguments causing failures for a long time Stefan Monnier
2020-02-17  1:52   ` Stefan Monnier
2020-02-17  2:22     ` Robert Weiner
2020-02-17  3:18     ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.