emacs-devel
[Top][All Lists]
Advanced

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

Re: Faces applies to new frames


From: Stefan Monnier
Subject: Re: Faces applies to new frames
Date: Sat, 28 Jun 2008 23:41:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> Regarding your recent change to face-set-after-frame-default: in the
> loop that initializes faces from face specs and X resources, I believe
> the reason this excluded the `default' face is that the `default' face's
> attributes are supposed to be applied right at the beginning of
> face-set-after-frame-default:

>   (if (face-attribute 'default :font t)
>       (set-face-attribute 'default frame :font
>                         (face-attribute 'default :font t))
>     (set-face-attribute 'default frame :family
>                       (face-attribute 'default :family t))
>     (set-face-attribute 'default frame :height
>                       (face-attribute 'default :height t))
>      ....

I must say I don't know what the above is trying to do.

> Thus, the function is simply trying to avoid doing the work twice.

Not quite: the second part applies defface settings, whereas the
first part applies "global face-attributes" (don't know why they
weren't set already).


        Stefan




reply via email to

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