From: Mauro Aranda <maurooaranda@gmail.com>
To: 19999@debbugs.gnu.org
Cc: ded-law@ddoherty.net
Subject: bug#19999: 24.4; Selecting Mutiple Custom Themes
Date: Mon, 6 Jan 2020 11:55:16 -0300 [thread overview]
Message-ID: <CABczVwdG_qX3O1x7Y3SHpPz6oMgJC_EkJyxhdKv-k+N5bencPA@mail.gmail.com> (raw)
In-Reply-To: <87fv9ldpq4.wl-ded-law@ddoherty.net>
[-- Attachment #1.1: Type: text/plain, Size: 709 bytes --]
tags 19999 patch
thanks
Daniel E. Doherty <ded-law@ddoherty.net> writes:
> (customize-themes)
> Check "Select more than one theme at a time"
> Check "leuven"
> Check "wombat"
> Click "Save Theme Settings"
>
> Open custom.el
>
> Only one of the themes is enabled.
I'm able to reproduce this on the release branch.
enable-theme, which is called while setting custom-enabled-themes,
destructively modifies custom-enabled-themes, thus affecting what will
be stored in the 'saved-value property of custom-enabled-themes when
saving it with custom-theme-save.
One possible fix is to make the updating of custom-enabled-themes in
enable-theme side-effect free, as the attached patch does.
Best regards,
Mauro.
[-- Attachment #1.2: Type: text/html, Size: 972 bytes --]
[-- Attachment #2: 0001-Fix-saving-multiple-themes.patch --]
[-- Type: text/x-patch, Size: 838 bytes --]
From b60438f1933a36e5af55745d7cc21990a06c6a62 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
Date: Mon, 6 Jan 2020 11:04:29 -0300
Subject: [PATCH] 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 @@ enable-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)))
--
2.7.4
next prev parent reply other threads:[~2020-01-06 14:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 10:25 bug#19999: 24.4; Selecting Mutiple Custom Themes Daniel E. Doherty
2020-01-06 14:55 ` Mauro Aranda [this message]
2020-01-07 16:21 ` Eli Zaretskii
2020-01-07 21:43 ` Mauro Aranda
2020-01-11 8:33 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABczVwdG_qX3O1x7Y3SHpPz6oMgJC_EkJyxhdKv-k+N5bencPA@mail.gmail.com \
--to=maurooaranda@gmail.com \
--cc=19999@debbugs.gnu.org \
--cc=ded-law@ddoherty.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.