emacs-devel
[Top][All Lists]
Advanced

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

Re: Face specifications in font-lock-keywords.


From: Lute Kamstra
Subject: Re: Face specifications in font-lock-keywords.
Date: Wed, 06 Apr 2005 16:16:52 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> (I'm updating the node Search-based Fontification in the lisp manual.)
>> The lisp manual says that a FACESPEC can be a list of the form
>
>>   (face FACE PROP1 VAL1 PROP2 VAL2...)
>
>> whereas the docstring of font-lock-keywords says that this can be a
>> list of the form:
>
>>   (face VAL1 PROP2 VAL2 PROP3 VAL3 ...)
>
>> The latter is obviously wrong.  But is the former correct?
>
> To me both are equivalent and correct.  What's the problem exactly?

Ah yes, now that you mention it: you could see them as equivalent.
The problem is that the second form suggests that VAL1 is of the same
type as VAL2 and VAL3, which is not the case.

> Regarding the discrepancy, I'd suggest we use the first form since
> it's a bit more explicit.

Ok.

Lute.



reply via email to

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