emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with face-spec-reset-face and set-face-attribute


From: Juri Linkov
Subject: Re: problems with face-spec-reset-face and set-face-attribute
Date: Thu, 20 Oct 2005 19:45:32 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

> The recipe to reproduce the problematic behavior was in Drew's mail:
>
>     emacs -q
>     (setq pop-up-frames t)
>     M-x list-faces-display
>     Click mouse-2 on completions-first-difference. It shows Inherit: bold.
>     M-: (set-face-attribute 'completions-first-difference nil :inherit 
> 'unspecified) RET
>     C-x 5 f whatever (create a new frame)
>     M-x list-faces-display (from the new frame)
>     Click mouse-2 on completions-first-difference. It shows "Inherit: bold" 
> (the original value).
>
>     However, doing list-faces-display from the same buffer where
>     you did `set-face-attribute', and clicking
>     completions-first-difference, shows "Inherit: unspecified".
>
> My comment about a possible bug specific to :inherit was because
> evaluating the same expression, namely
>
>   (set-face-attribute 'completions-first-difference nil ATTR 'unspecified)
>
> when ATTR is different from :inherit, e.g. :background or :slant, does
> work as Drew expected, and as the doc strings say it should.

In my tests this doesn't work for other attributes too.  Using

(set-face-attribute 'highlight nil :background 'unspecified)
(set-face-attribute 'italic nil :slant 'unspecified)

in the above recipe produces the same result, i.e. doesn't change the
default for new frames.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]