unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: BT Templeton <bt@hcoop.net>
To: 14120@debbugs.gnu.org
Subject: bug#14120: invalid load-history in emacsen that CANNOT_DUMP
Date: Mon, 01 Apr 2013 18:47:09 -0400	[thread overview]
Message-ID: <87fvz9rhqq.fsf@olor.terpri.org> (raw)

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





             reply	other threads:[~2013-04-01 22:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01 22:47 BT Templeton [this message]
2013-04-03 18:29 ` bug#14120: invalid load-history in emacsen that CANNOT_DUMP 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fvz9rhqq.fsf@olor.terpri.org \
    --to=bt@hcoop.net \
    --cc=14120@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).