From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Last steps for pretesting (font-lock-extend-region-function) Date: Thu, 20 Apr 2006 09:13:51 +0000 (GMT) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1145524199 14766 80.91.229.2 (20 Apr 2006 09:09:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 09:09:59 +0000 (UTC) Cc: Richard Stallman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 20 11:09:56 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWVAh-0004r6-Lw for ged-emacs-devel@m.gmane.org; Thu, 20 Apr 2006 11:09:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWVAh-0001mh-5d for ged-emacs-devel@m.gmane.org; Thu, 20 Apr 2006 05:09:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWVAV-0001mc-NT for emacs-devel@gnu.org; Thu, 20 Apr 2006 05:09:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWVAU-0001mH-1Y for emacs-devel@gnu.org; Thu, 20 Apr 2006 05:09:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWVAT-0001mE-St for emacs-devel@gnu.org; Thu, 20 Apr 2006 05:09:41 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWVBk-0006tS-53; Thu, 20 Apr 2006 05:11:01 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id JAA00530; Thu, 20 Apr 2006 09:13:53 GMT X-Sender: root@acm.acm Original-To: Stefan Monnier In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53126 Archived-At: Hi, again, Stefan! On Wed, 19 Apr 2006, Alan Mackenzie wrote: >On Wed, 19 Apr 2006, Stefan Monnier wrote: >>So if you really manage to use the current >>font-lock-extend-region-function (called from after-change-functions) >>in a way that's robust, efficient, ..... >So far, yes (except, perhaps, for the need of an extend-region function >in j-l-f-n and f-l-d-f-r). >>.... and can't be done as efficiently/elegantly/robustly with a hook in >>font-lock-fontify-region (or with the font-lock-multiline property), >>please scream. >AAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!! >I don't think we're going to agree on the relative elegance of >font-lock-extend-region-function vs. font-lock-multiline. I think that >the former is more elegant than the latter, and you think the latter is >the more elegant. >I'm convinced that either approach would be robust (hey, we're competent >hackers ;-). >However, I think that f-l-extend-region-function can be done more >efficiently by the major mode maintainer, in the sense that it will >require less time and effort reading manuals, reading fine source, and >coding. Also critically important: font-lock-extend-region-function is documented in the Elisp manual. The font-lock-multiline property isn't. Would you please write this documentation now. Then it would be much easier for Richard, me and everybody else to compare the two approaches. Thanks in anticipation! >> Stefan >Alan. -- Alan.