]> git.eshelyaron.com Git - emacs.git/commit
Correctly unload variable aliases.
authorJens Schmidt <jschmidt4gnu@vodafonemail.de>
Fri, 14 Mar 2025 22:07:11 +0000 (23:07 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 17 Mar 2025 11:05:33 +0000 (12:05 +0100)
commit75cb6ed08acabd7cbc4c3e1099770a1bb9e59bb2
tree63af576d68fbf737c61363934395ce8e33bf7bc0
parenta494024283af84899062c4e72bcfd5b8ada80ea5
Correctly unload variable aliases.

* src/eval.c (Finternal_delete_indirect_variable): Add function.
* lisp/loadhist.el (loadhist-unload-element): Use it for variable
aliases.
* test/src/eval-tests.el (eval-tests--internal-delete-indirect-variable):
Test function `internal-delete-indirect-variable'.
* test/lisp/loadhist-tests.el (loadhist-test-unload-feature-alias):
* test/lisp/loadhist-resources/loadhist--alias.el: Test unloading of
features that define variable aliases.  (Bug#76748)

(cherry picked from commit 7f2e4508cebe76a885b72ca4789ae839d5bd45e1)
lisp/loadhist.el
src/eval.c
test/lisp/loadhist-resources/loadhist--alias.el [new file with mode: 0644]
test/lisp/loadhist-tests.el
test/src/eval-tests.el