intern-soft, find-face/get-face, and facep for determining faces' definedness
Stefan Monnier
monnier at iro.umontreal.ca
Wed Nov 3 09:15:36 EST 2004
> 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
More information about the XEmacs-Beta
mailing list