[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Face specifications in font-lock-keywords.
From: |
Stefan Monnier |
Subject: |
Re: Face specifications in font-lock-keywords. |
Date: |
Wed, 06 Apr 2005 13:22:38 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> I think (face FACE [PROP VAL]...) would be clearer.
> AFAICS the "face FACE" part isn't even necessary; you can pass a
> property/value-only list to `font-lock-keywords' and it will work as
> well (you might have to disable global-font-lock-mode before trying
> this):
> (progn
> (pop-to-buffer (get-buffer-create "*foo*"))
> (insert "foo")
> (setq font-lock-keywords '(("foo" 0 '(:foreground "green"))))
> (font-lock-fontify-keywords-region (point-min) (point-max)))
It doesn't do the same. Your example only affects the `face' property,
whereas what the doc is talking about is how to set several text properties,
additionally to the `face' property (e.g. thinks like `keymap', `display'
`invisible', ...).
> This is not covered in the manual and doc string yet, or am I missing
> something?
It's probably discussed in the section talking about faces.
It's not specific to font-lock at all.
Stefan
- Face specifications in font-lock-keywords., Lute Kamstra, 2005/04/06
- Re: Face specifications in font-lock-keywords., Stefan Monnier, 2005/04/06
- Re: Face specifications in font-lock-keywords., Kim F. Storm, 2005/04/06
- Re: Face specifications in font-lock-keywords., Ralf Angeli, 2005/04/06
- Re: Face specifications in font-lock-keywords.,
Stefan Monnier <=
- Re: Face specifications in font-lock-keywords., Ralf Angeli, 2005/04/06
- Re: Face specifications in font-lock-keywords., Stefan Monnier, 2005/04/06
- Re: Face specifications in font-lock-keywords., Ralf Angeli, 2005/04/07
- Re: Face specifications in font-lock-keywords., Stefan Monnier, 2005/04/07
Re: Face specifications in font-lock-keywords., Lute Kamstra, 2005/04/06