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 #41 received at 76748 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
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 15:13:37 -0400
> 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'?

Good question.  I don't know.  I never use it.
The times I've heard people mention it, they tended to use it so as to
be able to unload an old version of a package and then load a newer
version in its place without having to restart Emacs.
And I got to hear about it because, well, that doesn't work
reliably.

> 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.

That would be the poor man's choice, but given you already wrote the
code to do it better, I wouldn't make that choice.


        Stefan





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.