[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Standard faces not working with font-lock-keywords
From: |
Ralf Angeli |
Subject: |
Standard faces not working with font-lock-keywords |
Date: |
Sun, 27 Mar 2005 14:22:48 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Executing the following example code
(with-temp-buffer
(insert "foo")
(setq font-lock-keywords '(("foo" . bold)))
(font-lock-fontify-keywords-region (point-min) (point-max)))
will result in an error that the variable `bold' is void. If you use,
for example, `font-lock-comment-face' instead of `bold' it is working.
Shouldn't the standard faces be used in `font-lock-keywords' or is
this a bug? I am asking because in AUCTeX you can set up your own
lists for keyword fontification and associate faces with them. And
this fails if the user tries to use one of the standard faces.
In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.6.2)
of 2005-03-25 on neutrino
Distributor `The XFree86 Project, Inc', version 11.0.40300001
configured using `configure '--with-gtk''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
display-time-mode: t
iswitchb-mode: t
show-paren-mode: t
encoded-kbd-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-y C-b C-x C-e q <up> <right> <up> <up> <up> C-SPC
<down> <down> <down> <down> M-w M-x r e p o r t - e
m <tab> <return>
Recent messages:
Loading byte-opt...done
Loading semantic-el...done
Loading cl-seq...done
Loading jit-lock...done
Mark set
Loading debug...done
Entering debugger...
Back to top level.
Mark activated
Loading emacsbug...done
- Standard faces not working with font-lock-keywords,
Ralf Angeli <=
- Re: Standard faces not working with font-lock-keywords, Stefan Monnier, 2005/03/27
- Re: Standard faces not working with font-lock-keywords, Stefan Monnier, 2005/03/28
- Re: Standard faces not working with font-lock-keywords, Miles Bader, 2005/03/28
- Re: Standard faces not working with font-lock-keywords, Stefan Monnier, 2005/03/28
- Re: Standard faces not working with font-lock-keywords, Kim F. Storm, 2005/03/28