|
From: | Ralf Angeli |
Subject: | Re: Standard faces not working with font-lock-keywords |
Date: | Mon, 28 Mar 2005 10:00:55 +0200 |
User-agent: | Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
[I haven't received an email of your answer, so I am replying via Gmane.] * Stefan Monnier (2005-03-27) writes: >> (setq font-lock-keywords '(("foo" . bold))) > ^^^^ > > This shouldn't be a face symbol but an expression (whose value is typically > a face symbol). I.e.: > > (setq font-lock-keywords '(("foo" (0 'bold)))) Oh, thank you for this information. I wasn't aware of this distinction. Does this mean using an expression is the canonical way of referring to faces in `font-lock-keywords' and using a symbol is only supported for reasons of backward compatibility by faces with an associated variable? -- Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |