GNU bug report logs - #48176
28.0.50; loadup.el leaves some variables in the lexical environment

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Sun, 2 May 2021 21:45:02 UTC

Severity: normal

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 48176 <at> debbugs.gnu.org
Subject: bug#48176: 28.0.50; loadup.el leaves some variables in the lexical environment
Date: Fri, 01 Jul 2022 13:20:56 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> After starting Emacs, some spurious variables like `output' or `success'
>> are bound.  It looks like they come from loadup.el. 
>
> Oh, interesting.  So it's these that are in the lexical environment when
> we're dumping:
>
>     (let ((output (cond ((equal dump-mode "pdump") "emacs.pdmp")
> [...]
>       (let (success)
>         (unwind-protect
>              (let ((tmp-dump-mode dump-mode)
>                    (dump-mode nil))
>                (if (member tmp-dump-mode '("pdump" "pbootstrap"))
>                    (dump-emacs-portable (expand-file-name output invocation-directory))
>                  (dump-emacs output "temacs")

I'm no longer able to reproduce this problem in Emacs 29, so I'm
guessing it's been fixed in the meantime, and I'm closing this bug
report.  (`output' is still bound around the `dump-emacs' call, so it's
not just a variable rename thing.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 327 days ago.

Previous Next


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