]> git.eshelyaron.com Git - emacs.git/commit
Avoid saving session customizations in the custom-file
authorMauro Aranda <maurooaranda@gmail.com>
Mon, 10 May 2021 11:33:32 +0000 (13:33 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 10 May 2021 11:33:32 +0000 (13:33 +0200)
commit779c615f333a01d11ab930b030d61545fb048f3d
tree493738307f960d58d525af7e1b825ec901dda12e
parent5bedbe6b1d5f4b801abf91b4d023d5c4e66418f0
Avoid saving session customizations in the custom-file

* lisp/custom.el (custom-theme-recalc-variable): Only stash theme
settings for void variables.
(custom-declare-variable): After initializing a variable, unstash a
theme setting, if present.
(disable-theme): When disabling a theme, maybe unstash a theme
setting.

* test/lisp/custom-resources/custom--test-theme.el: Add two settings
for testing the fix.
lisp/custom.el
test/lisp/custom-resources/custom--test-theme.el
test/lisp/custom-tests.el