emacs/test/lisp/custom-resources/custom--test-theme.el
Mauro Aranda 779c615f33 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.
2021-05-10 13:33:32 +02:00

13 lines
337 B
EmacsLisp

;;; custom--test-theme.el --- A test theme. -*- lexical-binding:t -*-
(deftheme custom--test
"A test theme.")
(custom-theme-set-variables
'custom--test
'(custom--test-user-option 'bar)
'(custom--test-variable 'bar)
'(custom--test-bug-21355-before 'before)
'(custom--test-bug-21355-after 'after))
(provide-theme 'custom--test)