From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Teodor Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Idea: Allow faces to have text-like properties Date: Tue, 5 Mar 2002 14:02:43 -0500 Message-ID: <20020305140242.B7850@iglou.com> References: <5xbse93nti.fsf@kfs2.cua.dk> <200203010111.g211Bh320228@aztec.santafe.edu> <200203010124.g211OPn05737@rum.cs.yale.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1015355413 5362 195.204.10.66 (5 Mar 2002 19:10:13 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 5 Mar 2002 19:10:13 GMT Cc: Richard Stallman , no-spam@cua.dk, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16iKKD-0001OO-00 for ; Tue, 05 Mar 2002 20:10:13 +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 16iKDW-0005g5-00; Tue, 05 Mar 2002 14:03:18 -0500 Original-Received: from shell1.iglou.com ([192.107.41.17] helo=iglou.com) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16iKD5-0005eQ-00; Tue, 05 Mar 2002 14:02:51 -0500 Original-Received: from tzz by iglou.com with local (8.9.3/8.9.3) id 16iKCx-0002Oz-00; Tue, 05 Mar 2002 14:02:43 -0500 Original-To: Stefan Monnier Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200203010124.g211OPn05737@rum.cs.yale.edu>; from monnier+gnu/emacs@rum.cs.yale.edu on Thu, Feb 28, 2002 at 08:24:25PM -0500 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:1748 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1748 On Thu, Feb 28, 2002 at 08:24:25PM -0500, Stefan Monnier wrote: > > 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. Has anyone taken interest in developing a package to utilize these text properties to provide "invisible" (from the user's viewpoint) faces? I think it's a great idea. Thanks Ted _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel