From: Mauro Aranda Date: Mon, 6 Jan 2020 14:04:29 +0000 (-0300) Subject: Fix saving multiple themes X-Git-Tag: emacs-27.0.90~183 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d6f9b097776925aac8c85da59712cc747062b813;p=emacs.git Fix saving multiple themes * lisp/custom.el (enable-theme): Be side-effect free when modifying custom-enabled-themes. (Bug#19999) --- 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)))