GNU bug report logs - #10630
24.0.92; :inheirt isn't being inherited in custom themes

Previous Next

Package: emacs;

Reported by: Adam Christensen <pope <at> shifteleven.com>

Date: Sat, 28 Jan 2012 18:43:02 UTC

Severity: normal

Merged with 8454

Found in versions 24.0, 24.0.92

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

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: Adam Christensen <pope <at> shifteleven.com>
Cc: 10630 <at> debbugs.gnu.org
Subject: Re: bug#10630: 24.0.92;
	:inheirt isn't being inherited in custom themes
Date: Sat, 28 Jan 2012 21:01:24 -0500
Adam Christensen wrote:

>     (custom-theme-set-faces
>      'foo
>      '(region ((t (:background "LightSkyBlue1"))))
>      '(isearch ((t (:inherit region)))))
[...]
> This doesn't appear to change the background of isearch.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8454#11

    "...:inherit only tells Emacs to consult the parent face if a face
    attribute is unspecified. If the attribute is specified, it
    overrides the inheritance. So if your Custom theme want to "cancel
    out", say, any existing foreground attribute setting, you need
    something like

    '(froob ((t (:foreground unspecified :inherit parent-face))))
    "




This bug report was last modified 12 years and 238 days ago.

Previous Next


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