]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix saving multiple themes
authorMauro Aranda <maurooaranda@gmail.com>
Mon, 6 Jan 2020 14:04:29 +0000 (11:04 -0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 11 Jan 2020 08:31:44 +0000 (10:31 +0200)
* lisp/custom.el (enable-theme): Be side-effect free when modifying
custom-enabled-themes.  (Bug#19999)

lisp/custom.el

index 037f6c5b1d5478bb01dbdf3d1a6747065a5d5c8f..885c486c5e43df18fb66da63762fa9e6ef2e7d1b 100644 (file)
@@ -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)))