GNU bug report logs - #9982
M-x load-theme does not change background color

Previous Next

Package: emacs;

Reported by: Brendan Miller <catphive <at> catphive.net>

Date: Mon, 7 Nov 2011 02:37:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #59 received at 9982 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Chong Yidong <cyd <at> gnu.org>
Cc: Brendan Miller <catphive <at> catphive.net>, 9982 <at> debbugs.gnu.org
Subject: Re: bug#9982: Theme faces wrongly applied after background changes.
Date: Sun, 29 Jan 2012 16:02:16 +0100
Hello.

29 jan 2012 kl. 14:28 skrev Chong Yidong:

> Chong Yidong <cyd <at> gnu.org> writes:
> 
>> I installed xfce4 and can now reproduce the bug.  The problem is the
>> existence of the `theme-face' property for `default', which is present
>> at startup even with emacs -Q.  I don't know where this is coming from
>> either, but it rings a dim bell---I'll try to investigate further.
> 
> The theme-face is coming from `font-setting-change-default-font' in
> dynamic-settings.el:
> 
>    (let ((spec (list (list t (face-attr-construct 'default)))))
>      (progn
>        (put 'default 'customized-face spec)
>        (custom-push-theme 'theme-face 'default 'user 'set spec)
>        (put 'default 'face-modified nil))))))
> 
> As this function is written, it's not going to play nicely with the
> Customize or Custom themes code.  It tries to apply the system font
> settings by pretending that the user has customized the default face.
> The problem is that user customizations override Custom themes.

Then does menu-set-font (the command for the menu choice "Set Default Font") have the same problem?  The code was taken from there.

	Jan D.





This bug report was last modified 13 years and 114 days ago.

Previous Next


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