emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Idea: Allow faces to have text-like properties


From: Stefan Monnier
Subject: Re: Idea: Allow faces to have text-like properties
Date: Thu, 28 Feb 2002 20:24:25 -0500

> I don't think that faces should specify general text properties.
> But it seems reasonable for font lock to be able to attach
> other properties (including `category').

This feature is already implemented (recently, by yours truly):

** font-lock can manage arbitrary text-properties beside `face'.
*** the FACENAME returned in font-lock-keywords can be a list
of the form (face FACE PROP1 VAL1 PROP2 VAL2 ...) so you can set
other properties than `face'.
*** font-lock-extra-managed-props can be set to make sure those extra
properties are automatically cleaned up by font-lock.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]