From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: How to use non-font-lock face in font-lock-keywords?
Date: Wed, 23 Dec 2009 21:31:31 +0100 [thread overview]
Message-ID: <87tyvhv3do.fsf@thinkpad.tsdh.de> (raw)
Hi all,
I have a problem with the specification of faces in font-lock entries.
When I use either
--8<---------------cut here---------------start------------->8---
(defparameter greql-fontlock-keywords-doc
(let ((regex "foo"))
(list (list (concat "\\(?:[`]?" regex "['(]\\)")
1 'font-lock-function-name-face))))
--8<---------------cut here---------------end--------------->8---
or
--8<---------------cut here---------------start------------->8---
(defparameter greql-fontlock-keywords-doc
(let ((regex "foo))
(list (list (concat "\\(?:[`]?" regex "['(]\\)")
1 font-lock-function-name-face))))
--8<---------------cut here---------------end--------------->8---
(the difference is the quoting of f-l-function-name-face) and then use
this variable as single entry in `font-lock-defaults', it works as
expected. But when I use 'bold instead of some font-lock-*-face,
nothing is fontified.
I also tried using a FACESPEC (face 'bold), or defined a variable
greql-doc-face with the value 'bold and used the variable as FACESPEC,
neither of those did work. :-(
Why? What do I need to do to use an arbitrary face?
Bye,
Tassilo
next reply other threads:[~2009-12-23 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 20:31 Tassilo Horn [this message]
2009-12-23 21:14 ` How to use non-font-lock face in font-lock-keywords? Drew Adams
2009-12-23 21:45 ` Tassilo Horn
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=87tyvhv3do.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--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).