emacs-devel
[Top][All Lists]
Advanced

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

Re: How to use non-font-lock face in font-lock-keywords?


From: Lennart Borgman
Subject: Re: How to use non-font-lock face in font-lock-keywords?
Date: Wed, 23 Dec 2009 22:50:07 +0100

On Wed, Dec 23, 2009 at 10:45 PM, Tassilo Horn <address@hidden> wrote:
> "Drew Adams" <address@hidden> writes:
>
> Hi Drew,
>
>>> Why?  What do I need to do to use an arbitrary face?
>>
>> Without looking closely at your code, my guess is this:
>>
>> 1. `font-lock-function-name-face' is a variable (whose value is the symbol
>> `font-lock-function-name-face'). There is no variable `bold'.
>>
>> 2. When you use
>> (list (list (concat "\\(?:[`]?" regex "['(]\\)") 1 'bold))))
>>
>> you get a list with the face name (symbol), but it is not quoted.
>
> You are right, I have to use (quote 'bold), and then it works.


I think Drew said (quote bold).


> Thanks a ton!
> Tassilo
>
>
>




reply via email to

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