From: Tassilo Horn <tassilo@member.fsf.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to use non-font-lock face in font-lock-keywords?
Date: Wed, 23 Dec 2009 22:45:24 +0100 [thread overview]
Message-ID: <87pr65uzyj.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <BD42058352C5409D9FA1C56809AD4308@us.oracle.com> (Drew Adams's message of "Wed, 23 Dec 2009 13:14:41 -0800")
"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.
Thanks a ton!
Tassilo
next prev parent reply other threads:[~2009-12-23 21:45 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 [this message]
2009-12-23 21:50 ` Lennart Borgman
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=87pr65uzyj.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--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).