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: Tassilo Horn
Subject: Re: How to use non-font-lock face in font-lock-keywords?
Date: Wed, 23 Dec 2009 22:45:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

"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.

Thanks a ton!
Tassilo




reply via email to

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