emacs-devel
[Top][All Lists]
Advanced

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

Re: intern-soft, find-face/get-face, and facep for determining faces' de


From: Stefan Monnier
Subject: Re: intern-soft, find-face/get-face, and facep for determining faces' definedness
Date: Wed, 03 Nov 2004 09:15:36 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>     I still don't understand why (facep 'foo) returns nil, even though
>        (put-text-property (point) (+ 10 (point)) 'face 'foo)
>     and
>        (set-face-foreground 'foo "red")

>     work just fine.

> I don't understand what you mean here.  As far as I know, if (facep
> 'foo) returns nil, then (set-face-foreground 'foo "red") will signal
> an error, "Invalid face".  Conversely, if you define foo as face, then
> (facep 'foo) will return t.

Yes, that's what happens under Emacs.  I was talking about XEmacs, tho.


        Stefan




reply via email to

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