emacs-devel
[Top][All Lists]
Advanced

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

Re: customized default face doesn't work on new frames


From: Oliver Scholz
Subject: Re: customized default face doesn't work on new frames
Date: Wed, 22 Jan 2003 13:33:08 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.1.2600)

Richard Stallman <address@hidden> writes:

>     If you customize the default face, it doesn't take effect on
>     subsequently-created frames, which is surprising.  The code somewhat
>     suggests this is intentional, but I can't see why and the behaviour
>     simply seems wrong.
>
> I think that is a bug.  Where exactly does the code suggest this was
> intentional?
>
> I tried it just now, changing the background of `default' to purple,
> and it did take affect for subsequently created frames--almost.

The behaviour is different for different face attributes. For example
changing the height of the font is not propagated to new frames.

The same is true for the lisp functions:


Work for new frames:

(set-face-attribute 'default nil :foreground "red")
(set-face-attribute 'default nil :background "cyan")


Don't work for new frames:

(set-face-attribute 'default nil :height 240)
(set-face-attribute 'default nil :family "times")

    Oliver
-- 
Oliver Scholz               3 Pluviôse an 211 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org





reply via email to

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