aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-07-11 06:12:55 +0000
committerJuanma Barranquero2005-07-11 06:12:55 +0000
commitba2c4279e0dcdc918305517b2f58b6c7ba727640 (patch)
treeb9a4df1a34567de81af7f16951a154cf86375321
parent8989771d605dfc49ed520dbf08dc4049bd1d9bdd (diff)
downloademacs-ba2c4279e0dcdc918305517b2f58b6c7ba727640.tar.gz
emacs-ba2c4279e0dcdc918305517b2f58b6c7ba727640.zip
(custom-enable-theme): Don't add theme to `custom-enabled-themes' with `push'
because there is no setf-method for `delq'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/custom.el3
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 859f5b3e2e1..e0f84dab374 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12005-07-11 Juanma Barranquero <lekktu@gmail.com>
2
3 * custom.el (custom-enable-theme): Don't add theme to
4 `custom-enabled-themes' with `push' because there is no
5 setf-method for `delq'.
6
12005-07-11 Richard M. Stallman <rms@gnu.org> 72005-07-11 Richard M. Stallman <rms@gnu.org>
2 8
3 * custom.el (custom-declare-variable): Doc fix. 9 * custom.el (custom-declare-variable): Doc fix.
diff --git a/lisp/custom.el b/lisp/custom.el
index 8e9818b71e7..f17ce1e5175 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -1102,7 +1102,8 @@ If it is already enabled, just give it highest precedence (after `user')."
1102 (if (eq prop 'theme-value) 1102 (if (eq prop 'theme-value)
1103 (custom-theme-recalc-variable symbol) 1103 (custom-theme-recalc-variable symbol)
1104 (custom-theme-recalc-face symbol))))) 1104 (custom-theme-recalc-face symbol)))))
1105 (push theme (delq theme custom-enabled-themes)) 1105 (setq custom-enabled-themes
1106 (cons theme (delq theme custom-enabled-themes)))
1106 ;; `user' must always be the highest-precedence enabled theme. 1107 ;; `user' must always be the highest-precedence enabled theme.
1107 (unless (eq theme 'user) 1108 (unless (eq theme 'user)
1108 (custom-enable-theme 'user))) 1109 (custom-enable-theme 'user)))