GNU bug report logs - #76748
31.0.50; `unload-feature' unbinds NEW-ALIAS and BASE-VARIABLE of variable alias

Previous Next

Package: emacs;

Reported by: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>

Date: Tue, 4 Mar 2025 20:58:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #38 received at 76748 <at> debbugs.gnu.org (full text, mbox):

From: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 76748 <at> debbugs.gnu.org
Subject: Re: bug#76748: 31.0.50; `unload-feature' unbinds NEW-ALIAS and
 BASE-VARIABLE of variable alias
Date: Sat, 15 Mar 2025 17:57:25 +0100
Thanks for your review.  I'll implement your recommendations (and
Eli's), but here is one more general question, which came to me
only now:  What's the general purpose of `unload-history'?

If I understand the Elisp manual ((elisp) Unloading) correctly, the
main intention of unloading a library is to reclaim memory:

  You can discard the functions and variables loaded by a library
  to reclaim memory for other Lisp objects.

Plus `unload-history' currently does not really try to be overly
thorough in its cleanup: Docstrings of variables survive the
cleanup, for example, and so do faces.

So another, less invasive option to fix this bug might be to just
skip variable aliases in `unload-history' and not call `makunbound'
on them.

WDYT?





This bug report was last modified 67 days ago.

Previous Next


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