unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Þorne <ego111@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: font-lock-add-keywords confusion
Date: 10 Feb 2007 06:41:15 -0800	[thread overview]
Message-ID: <1171118475.915973.153740@h3g2000cwc.googlegroups.com> (raw)
In-Reply-To: <1171117540.517798.173870@a34g2000cwb.googlegroups.com>

On Feb 10, 6:25 am, "Þorne" <ego...@gmail.com> wrote:
> I'm having major trouble understanding the documentation on faces--
> specificallyfont-lock-add-keywords.

That's for sure.

Sorry, nevermind.  I obviously didn't understant the types of the
arguments.

So, in case anyone searches and finds this, the answer is, the face
name needs to be quoted, as in:

(font-lock-add-keywords nil
  '(("foo" 0 'underline)))

The stock font-lock face names (like font-lock-builtin-face, etc) all
are symbols that point to themselves (or something like that) and so
are more-or-less self-quoting.  Kinda strange, at least for a lisp
newbie.

Þ

  reply	other threads:[~2007-02-10 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-10 14:25 font-lock-add-keywords confusion Þorne
2007-02-10 14:41 ` Þorne [this message]
2007-02-10 20:10   ` Stefan Monnier

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=1171118475.915973.153740@h3g2000cwc.googlegroups.com \
    --to=ego111@gmail.com \
    --cc=help-gnu-emacs@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.
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).