Re: Standard faces not working with font-lock-keywords

2005-03-28 Thread Ralf Angeli
[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

Re: Standard faces not working with font-lock-keywords

2005-03-28 Thread Miles Bader
On Mon, 28 Mar 2005 10:00:55 +0200, Ralf Angeli [EMAIL PROTECTED] 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

Re: Standard faces not working with font-lock-keywords

2005-03-28 Thread Miles Bader
On Mon, 28 Mar 2005 11:09:16 +0200, Ralf Angeli [EMAIL PROTECTED] wrote: 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. Yes, that was what I was

Re: Standard faces not working with font-lock-keywords

2005-03-28 Thread Stefan Monnier
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 very old...] But as you know, this has proved

Re: Standard faces not working with font-lock-keywords

2005-03-28 Thread Miles Bader
On Mon, 28 Mar 2005 09:55:19 -0500, Stefan Monnier [EMAIL PROTECTED] wrote: that would have required buffer-local faces (which we still don't have: any progress on this side?) They've worked great in my emacs for ages and ages; I use them daily... :-/ -Miles -- Do not taunt Happy Fun Ball.

Re: Standard faces not working with font-lock-keywords

2005-03-28 Thread Stefan Monnier
that would have required buffer-local faces (which we still don't have: any progress on this side?) They've worked great in my emacs for ages and ages; I use them daily... :-/ I know, but I still can't see any trace of it in the CVS :-( Stefan

Standard faces not working with font-lock-keywords

2005-03-27 Thread Ralf Angeli
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

Re: Standard faces not working with font-lock-keywords

2005-03-27 Thread Stefan Monnier
(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 -- Stefan