From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.devel Subject: new text property Date: 09 Jun 2002 03:22:56 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <1023607376.8184.1228.camel@space-ghost> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1023658418 13036 127.0.0.1 (9 Jun 2002 21:33:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Jun 2002 21:33:38 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17HAJe-0003O8-00 for ; Sun, 09 Jun 2002 23:33:38 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17HAgB-0004Nm-00 for ; Sun, 09 Jun 2002 23:56:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17HAJF-0000rZ-00; Sun, 09 Jun 2002 17:33:13 -0400 Original-Received: from monk.debian.net ([216.185.54.61] helo=monk.verbum.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17HAGs-0000er-00 for ; Sun, 09 Jun 2002 17:30:46 -0400 Original-Received: from space-ghost.verbum.private (freedom.cis.ohio-state.edu [164.107.60.183]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "space-ghost.verbum.org", Issuer "monk.verbum.org" (verified OK)) by monk.verbum.org (Postfix (Debian/GNU)) with ESMTP id 44C7B7400279; Sun, 9 Jun 2002 17:30:35 -0400 (EDT) Original-Received: by space-ghost.verbum.private (Postfix (Debian/GNU), from userid 1000) id 5EB42872478; Sun, 9 Jun 2002 03:22:57 -0400 (EDT) Original-To: emacs-devel@gnu.org, xemacs-design@xemacs.org X-Mailer: Ximian Evolution 1.0.3 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4673 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4673 Hello, Emacs 21.4 will have a new text property `font-lock-face'. I would personally like to see support for this property in XEmacs too, so the authors of externally distributed modes can use it easily and keep their code portable, and also to keep Emacs and XEmacs from diverging more. The rationale for this change is that it easily allows "special" modes to have their fontification controlled by M-x font-lock-mode, rather than having to set a variable like `cvs-highlight', `Info-fontify', or tracking down a -face variable and setting it to `default'. Emacs actually doesn't implement this variable in the core C code; instead, we added a new variable `char-property-alias-alist' which allows properties to have alternative names. M-x font-lock-mode can then add and delete `font-lock-face' as an alias for the `face' property. There are other neat things one can do with this variable too. It would be nice if XEmacs could support `char-property-alias-alist' in its entirety (I bet all you need to change is `extent-get'), but I'd be satisfied with just implementing support for `font-lock-face', however you choose to do it. What do you (XEmacs people) think? If you're interested in all the details of how we eventually arrived at this solution, see the thread entited "kill ring menu" on emacs-devel (we really should have chosen a different subject title at some point...).