unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lennart Borgman'" <lennart.borgman@gmail.com>, <emacs-devel@gnu.org>
Subject: RE: How to use non-font-lock face in font-lock-keywords?
Date: Wed, 23 Dec 2009 13:59:16 -0800	[thread overview]
Message-ID: <68515A69386146CC8C9E28055F6043D4@us.oracle.com> (raw)
In-Reply-To: <e01d8a50912231350t12558c01if3c1dc6b3e07b95c@mail.gmail.com>

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

Nope. Tassilo understood correctly. In the source code, you need (quote (quote
bold)), which evaluates to (quote bold). The point is that the face name needs
to be quoted in the result.

I suggested

`((,(concat "\\(?:[`]?" regex "['(]\\)") 1 'bold))

which is equivalent to using (quote (quote bold)) and which produces (quote
bold).





  reply	other threads:[~2009-12-23 21:59 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
2009-12-23 21:59       ` Drew Adams [this message]
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=68515A69386146CC8C9E28055F6043D4@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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).