From: Lennart Borgman <lennart.borgman@gmail.com>
To: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: How to use non-font-lock face in font-lock-keywords?
Date: Wed, 23 Dec 2009 22:50:07 +0100 [thread overview]
Message-ID: <e01d8a50912231350t12558c01if3c1dc6b3e07b95c@mail.gmail.com> (raw)
In-Reply-To: <87pr65uzyj.fsf@thinkpad.tsdh.de>
On Wed, Dec 23, 2009 at 10:45 PM, Tassilo Horn <tassilo@member.fsf.org> wrote:
> "Drew Adams" <drew.adams@oracle.com> 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
>
>
>
next prev parent reply other threads:[~2009-12-23 21:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 20:31 How to use non-font-lock face in font-lock-keywords? Tassilo Horn
2009-12-23 21:14 ` Drew Adams
2009-12-23 21:45 ` Tassilo Horn
2009-12-23 21:50 ` Lennart Borgman [this message]
2009-12-23 21:59 ` Drew Adams
2009-12-23 22:08 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50912231350t12558c01if3c1dc6b3e07b95c@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).