[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Standard faces not working with font-lock-keywords
From: |
Miles Bader |
Subject: |
Re: Standard faces not working with font-lock-keywords |
Date: |
Mon, 28 Mar 2005 17:44:25 +0900 |
On Mon, 28 Mar 2005 10:00:55 +0200, Ralf Angeli <address@hidden> wrote:
> > 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?
No, it's just an expression -- for the standard font-lock faces there
are variable names that are _exactly_ the same as the face names,
which evaluate to the corresponding face name.
[I think this is silly and confusing, but font-lock is verrrrry old...]
-Miles
--
Do not taunt Happy Fun Ball.
- Standard faces not working with font-lock-keywords, Ralf Angeli, 2005/03/27
- 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
- Re: Standard faces not working with font-lock-keywords, Miles Bader, 2005/03/28