Commit ba2c4279 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(custom-enable-theme): Don't add theme to `custom-enabled-themes' with `push'

because there is no setf-method for `delq'.
parent 8989771d
2005-07-11 Juanma Barranquero <lekktu@gmail.com>
* custom.el (custom-enable-theme): Don't add theme to
`custom-enabled-themes' with `push' because there is no
setf-method for `delq'.
2005-07-11 Richard M. Stallman <rms@gnu.org>
 
* custom.el (custom-declare-variable): Doc fix.
......
......@@ -1102,7 +1102,8 @@ If it is already enabled, just give it highest precedence (after `user')."
(if (eq prop 'theme-value)
(custom-theme-recalc-variable symbol)
(custom-theme-recalc-face symbol)))))
(push theme (delq theme custom-enabled-themes))
(setq custom-enabled-themes
(cons theme (delq theme custom-enabled-themes)))
;; `user' must always be the highest-precedence enabled theme.
(unless (eq theme 'user)
(custom-enable-theme 'user)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment