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: Miles Bader
Subject: Re: intern-soft, find-face/get-face, and facep for determining faces' definedness
Date: Tue, 02 Nov 2004 18:50:53 +0900

Brian Palmer <address@hidden> writes:
>> Given that Xemacs has a differing definition of facep requiring one to
>> use `find-face' instead, would an Emacs version:
>> 
>>    (defun find-face (face) (and (facep face) face))
>> 
>> do the job?
>
> I think so, as long as emacs allows a face-name everywhere a face is 
> permitted.

For most purposes, Emacs doesn't have a special face type, it only has
face-names.

It's also possible to get a lisp vector containing face attributes, but
this is typically only useful for a few special tasks -- most interfaces
want a face-name).

To be reasonably compatible with Xemacs, it would be necessary to know
what exactly a face-object (such as returned by `find-face') is useful
for, and I don't.  But my guess is that a face-name is closer than a
face-vector.

-Miles
-- 
Saa, shall we dance?  (from a dance-class advertisement)




reply via email to

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