[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Face specifications in font-lock-keywords (part II).
From: |
Lute Kamstra |
Subject: |
Re: Face specifications in font-lock-keywords (part II). |
Date: |
Thu, 07 Apr 2005 15:33:23 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> However, using the fancy FACESPEC directly like this:
>
>> ("oele" . '(face font-lock-builtin-face))
>> ("oele" . (0 '(face font-lock-builtin-face)))
>
>> works only in the second case. Is this a bug?
>
> Check the value of font-lock-keywords in the buffer after turning font-lock
> mode ON (font-lock "compiles" the keywords before using them. "compiles"
> here only means use a canonical format which IIRC would be something like
> ("oele" (0 font-lock-builtin-face))).
First case:
font-lock-keywords =>
(t
(("oele" quote
(face font-lock-builtin-face)))
("oele"
(face font-lock-builtin-face)))
Second case:
font-lock-keywords =>
(t
(("oele" 0
'(face font-lock-builtin-face)))
("oele"
(0
'(face font-lock-builtin-face))))
Does that mean that Font Lock erroneously strips the quote in the
first case?
Lute.