emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 d6f9b09: Fix saving multiple themes


From: Eli Zaretskii
Subject: emacs-27 d6f9b09: Fix saving multiple themes
Date: Sat, 11 Jan 2020 03:33:12 -0500 (EST)

branch: emacs-27
commit d6f9b097776925aac8c85da59712cc747062b813
Author: Mauro Aranda <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix saving multiple themes
    
    * lisp/custom.el (enable-theme): Be side-effect free when modifying
    custom-enabled-themes.  (Bug#19999)
---
 lisp/custom.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/custom.el b/lisp/custom.el
index 037f6c5..885c486 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)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]