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: Tue, 25 Apr 2006 10:53:07 +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 1145964616 6363 80.91.229.2 (25 Apr 2006 11:30:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 11:30:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 13:30:09 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 1FYLk2-0004w6-Qn for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 13:30:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYLk2-0000OF-4K for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 07:30:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYLjm-0000Ly-Q5 for emacs-devel@gnu.org; Tue, 25 Apr 2006 07:29:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYLjl-0000Jh-Dk for emacs-devel@gnu.org; Tue, 25 Apr 2006 07:29:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYLjl-0000JM-32 for emacs-devel@gnu.org; Tue, 25 Apr 2006 07:29:45 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYLmC-0005YJ-21 for emacs-devel@gnu.org; Tue, 25 Apr 2006 07:32:17 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id KAA00716; Tue, 25 Apr 2006 10:53:08 GMT X-Sender: root@acm.acm Original-To: Ralf Angeli 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:53368 Archived-At: Hi, Ralf! On Tue, 25 Apr 2006, Ralf Angeli wrote: >* Stefan Monnier (2006-04-24) writes: >> I was talking about programmer work, and I've shown you the code for >> font-lock-multiline: it's quite a bit shorter and more straightforward than >> your hack using b-c-f and a-c-f: just match the multiline element, place >> a font-lock-multiline property on it, and you're set. >Do you even have to bother with placing font-lock-multiline properties >manually? In AUCTeX we simply set the font-lock-multiline variable to >t and font-lock added the property automatically. Yes, absolutely! There are two separate things here which Stefan is failing to distinguish: (i) The matching of keywords which span line breaks; (ii) Extending a font-lock region to include all text needing refontification. If I've understood font-lock-multiline properly, only manually setting f-l-m can achieve purpose (ii). >Ralf -- Alan.