From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Idea: Allow faces to have text-like properties Date: Thu, 28 Feb 2002 20:24:25 -0500 Message-ID: <200203010124.g211OPn05737@rum.cs.yale.edu> References: <5xbse93nti.fsf@kfs2.cua.dk> <200203010111.g211Bh320228@aztec.santafe.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014946301 24712 195.204.10.66 (1 Mar 2002 01:31:41 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 1 Mar 2002 01:31:41 GMT Cc: no-spam@cua.dk, emacs-devel@gnu.org, tzz@beld.net Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16gbtc-0006QU-00 for ; Fri, 01 Mar 2002 02:31:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gbp9-0001CF-00; Thu, 28 Feb 2002 20:27:03 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gbmc-00017D-00; Thu, 28 Feb 2002 20:24:26 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g211OPn05737; Thu, 28 Feb 2002 20:24:25 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1659 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1659 > 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel