GNU bug report logs - #77215
31.0.50; enable-theme-functions fires twice after a load-theme

Previous Next

Package: emacs;

Reported by: Filippo Argiolas <filippo.argiolas <at> gmail.com>

Date: Sun, 23 Mar 2025 17:55:02 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Filippo Argiolas <filippo.argiolas <at> gmail.com>
To: 77215 <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#77215: 31.0.50; enable-theme-functions fires twice after a load-theme
Date: Sun, 23 Mar 2025 18:54:14 +0100
Hi,

I noticed that my `enable-theme-functions' hook always fires twice after
either a `load-theme' or a `enable-theme'.

Problem is `enable-theme' in custom.el always also enables the user
theme to push it on top of the list.

Is this desired?

Technically I'd say it's correct, two enables spark two hooks, buyt from the
user point of view seems a counterintuitive side effect without digging
into the code.

Filippo




This bug report was last modified 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.