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: Richard Stallman
Subject: Re: intern-soft, find-face/get-face, and facep for determining faces' definedness
Date: Wed, 03 Nov 2004 07:45:01 -0500

    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.




reply via email to

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