From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: new text property Date: 10 Jun 2002 21:26:01 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87adq3jp5y.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <1023607376.8184.1228.camel@space-ghost> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1023712055 9678 127.0.0.1 (10 Jun 2002 12:27:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2002 12:27:35 +0000 (UTC) Cc: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=), emacs-devel@gnu.org, xemacs-design@xemacs.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17HOGl-0002Vy-00 for ; Mon, 10 Jun 2002 14:27:35 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17HOda-0007WS-00 for ; Mon, 10 Jun 2002 14:51:10 +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 17HOGH-0002ko-00; Mon, 10 Jun 2002 08:27:05 -0400 Original-Received: from smtp01.fields.gol.com ([203.216.5.131]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17HOFM-0002da-00; Mon, 10 Jun 2002 08:26:08 -0400 Original-Received: from tc-2-177.kawasaki.gol.ne.jp ([203.216.25.177] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp01.fields.gol.com with esmtp (Magnetic Fields) id 17HOFJ-0002pI-00; Mon, 10 Jun 2002 21:26:05 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 793C630A4; Mon, 10 Jun 2002 21:26:01 +0900 (JST) Original-To: Hrvoje Niksic System-Type: i686-pc-linux-gnu In-Reply-To: Original-Lines: 38 X-Abuse-Complaints: abuse@gol.com 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:4698 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4698 Hrvoje Niksic writes: > You can overload font-lock-mode to mean that, but it has traditionally > not been the case. >From a user's perspective, `most' fontified stuff has traditionally been handled by font-lock, and so `M-x font-lock-mode' (and global-font-lock-mode) is the familiar interface to turning on and off fontification. So, if you want to have a unified method of doing this, what are your choices? I can see: (1) Add a new command/mode/whatever that does it, which acts as a layer on top of the traditional font-lock code, gnus, comint, etc. (2) Extend the familiar UI aspect of `M-x font-lock-mode' to work generally for modes that don't use the traditional font-lock mechanism, and additionally add more separation between the font-lock UI and the regexp-scanning etc. [note that for a user, the name `font-lock-mode' makes perfect sense as a way to toggle fontification] Method (1) means that users have to learn a new command to use in many cases, whereas (2) means that for most cases, the interface remains the same, and in fact starts to work for other modes -- an extension which I'd argue is quite natural (unless you're a font-lock hacker, in which case you're probably grumbling that `none of this makes any sense, font-lock is font-lock!!'). Don't get hung up on the traditional conflation of the font-lock UI with the mechanism used to implement it; it's really not necessary. -Miles -- .Numeric stability is probably not all that important when you're guessing.