mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-25 19:11:56 +00:00
Do not reset settings when disabling a theme
* lisp/custom.el (disable-theme): Don't call custom-push-theme, since that resets the theme settings and it isn't useful: we only need to remove the theme setting from the themed variable or face. This fixes a regression when "toggling" themes, introduced while fixing Bug#34027. (Bug#48736)
This commit is contained in:
parent
23ad0f0c5a
commit
15f46b9669
@ -1528,7 +1528,7 @@ See `custom-enabled-themes' for a list of enabled themes."
|
||||
(let* ((prop (car s))
|
||||
(symbol (cadr s))
|
||||
(val (assq-delete-all theme (get symbol prop))))
|
||||
(custom-push-theme prop symbol theme 'reset)
|
||||
(put symbol prop val)
|
||||
(cond
|
||||
((eq prop 'theme-value)
|
||||
(custom-theme-recalc-variable symbol)
|
||||
|
Loading…
Reference in New Issue
Block a user