mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-16 17:00:06 +00:00

* 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.
13 lines
337 B
EmacsLisp
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)
|