summaryrefslogtreecommitdiff
path: root/lisp/custom.el
diff options
context:
space:
mode:
authorMauro Aranda <maurooaranda@gmail.com>2020-01-06 11:04:29 -0300
committerEli Zaretskii <eliz@gnu.org>2020-01-11 10:31:44 +0200
commitd6f9b097776925aac8c85da59712cc747062b813 (patch)
treea69361455c0c119f67dc97c956c25e6eb795df78 /lisp/custom.el
parentc556aabde8bdfae6c3d896d22d992e8d62176832 (diff)
downloademacs-d6f9b097776925aac8c85da59712cc747062b813.tar.gz
Fix saving multiple themes
* lisp/custom.el (enable-theme): Be side-effect free when modifying custom-enabled-themes. (Bug#19999)
Diffstat (limited to 'lisp/custom.el')
-rw-r--r--lisp/custom.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index 037f6c5b1d5..885c486c5e4 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -1381,7 +1381,7 @@ function runs. To disable other themes, use `disable-theme'."
(custom-theme-recalc-variable symbol)))))))
(unless (eq theme 'user)
(setq custom-enabled-themes
- (cons theme (delq theme custom-enabled-themes)))
+ (cons theme (remq theme custom-enabled-themes)))
;; Give the `user' theme the highest priority.
(enable-theme 'user)))