diff options
author | Mauro Aranda <maurooaranda@gmail.com> | 2020-01-06 11:04:29 -0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-01-11 10:31:44 +0200 |
commit | d6f9b097776925aac8c85da59712cc747062b813 (patch) | |
tree | a69361455c0c119f67dc97c956c25e6eb795df78 /lisp/custom.el | |
parent | c556aabde8bdfae6c3d896d22d992e8d62176832 (diff) | |
download | emacs-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.el | 2 |
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))) |