From: Daniel Mendler <mail@daniel-mendler.de>
To: 48736@debbugs.gnu.org
Cc: maurooaranda@gmail.com
Subject: bug#48736: 28.0.50; Regression in `enable-theme'
Date: Sun, 30 May 2021 05:06:55 +0200 [thread overview]
Message-ID: <4c28cdc6-3014-7fe6-52ec-9bab0ad395fb@daniel-mendler.de> (raw)
On Emacs 27 the following snippet works as expected:
~~~
(defun set-theme (theme)
(mapc #'disable-theme custom-enabled-themes)
(when theme
(if (custom-theme-p theme)
(enable-theme theme)
(load-theme theme :no-confirm))))
(set-theme 'deeper-blue)
(set-theme 'leuven)
(set-theme 'deeper-blue)
~~~
On Emacs 28, the second call `(set-theme 'deeper-blue)` is ineffective
and `deeper-blue` is not enabled. In contrast, the `set-theme` function
works, if written as follows, indicating a regression in `enable-theme`.
~~~
(defun set-theme (theme)
(mapc #'disable-theme custom-enabled-themes)
(when theme
(load-theme theme :no-confirm)))
~~~
In GNU Emacs 28.0.50 (build 12, x86_64-pc-linux-gnu, GTK+ Version
3.24.5, cairo version 1.16.0)
of 2021-05-23 built on projects
Repository revision: 04e7c6da34df6b60e253a35b9baa3eba4062617f
Repository branch: icomplete-affixate
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)
next reply other threads:[~2021-05-30 3:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-30 3:06 Daniel Mendler [this message]
2021-05-30 12:40 ` bug#48736: 28.0.50; Regression in `enable-theme' Mauro Aranda
2021-05-30 13:02 ` Daniel Mendler
2021-05-30 15:03 ` Mauro Aranda
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c28cdc6-3014-7fe6-52ec-9bab0ad395fb@daniel-mendler.de \
--to=mail@daniel-mendler.de \
--cc=48736@debbugs.gnu.org \
--cc=maurooaranda@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).