From: Þorne <ego111@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: font-lock-add-keywords confusion
Date: 10 Feb 2007 06:25:40 -0800 [thread overview]
Message-ID: <1171117540.517798.173870@a34g2000cwb.googlegroups.com> (raw)
I'm having major trouble understanding the documentation on faces--
specifically font-lock-add-keywords. This works for me (emacs 21.3.1
Windows):
(font-lock-add-keywords nil
'(("foo" 0 font-lock-builtin-face)))
but this does not:
(font-lock-add-keywords nil
'(("foo" 0 underline)))
Nor with any other face--except the font-lock faces. If i do M-x list-
faces-display, `underline' is there and looks right.
So i try:
(defface font-lock-underlined-face
'((t (:underline t)))
"Font Lock mode face used to underline."
:group 'font-lock-highlighting-faces)
(font-lock-add-keywords nil
'(("foo" 0 font-lock-underlined-face)))
but still no luck, even though again it looks like the new face is
defined ok and works--at least in customize and in list-faces-
display.
So what am i missing?
next reply other threads:[~2007-02-10 14:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-10 14:25 Þorne [this message]
2007-02-10 14:41 ` font-lock-add-keywords confusion Þorne
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=1171117540.517798.173870@a34g2000cwb.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).