[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 15f46b9: Do not reset settings when disabling a theme
From: |
Mauro Aranda |
Subject: |
master 15f46b9: Do not reset settings when disabling a theme |
Date: |
Sun, 30 May 2021 08:36:15 -0400 (EDT) |
branch: master
commit 15f46b9669fe93c62b5749e3326d4124188f54cd
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Mauro Aranda <maurooaranda@gmail.com>
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)
---
lisp/custom.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/custom.el b/lisp/custom.el
index 078e3a8..1db3f4f 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 15f46b9: Do not reset settings when disabling a theme,
Mauro Aranda <=