From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: Last steps for pretesting (font-lock-extend-region-function) Date: Tue, 25 Apr 2006 20:37:51 +0200 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 1145990262 9751 80.91.229.2 (25 Apr 2006 18:37:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 18:37:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 20:37:40 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 1FYSPn-0004eK-1t for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 20:37:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYSPm-0007nw-Eg for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 14:37:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYSOv-0007bm-SK for emacs-devel@gnu.org; Tue, 25 Apr 2006 14:36:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYSOt-0007a0-TF for emacs-devel@gnu.org; Tue, 25 Apr 2006 14:36:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYSOt-0007Ze-CS for emacs-devel@gnu.org; Tue, 25 Apr 2006 14:36:39 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYSRP-0000QO-4m for emacs-devel@gnu.org; Tue, 25 Apr 2006 14:39:15 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FYSOl-0004Re-ND for emacs-devel@gnu.org; Tue, 25 Apr 2006 20:36:31 +0200 Original-Received: from dialin-212-144-187-024.pools.arcor-ip.net ([212.144.187.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Apr 2006 20:36:31 +0200 Original-Received: from angeli by dialin-212-144-187-024.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Apr 2006 20:36:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dialin-212-144-187-024.pools.arcor-ip.net Cancel-Lock: sha1:b71LYT39Ok8R7yhCv3AXyMD6PFU= 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:53401 Archived-At: * Alan Mackenzie (2006-04-25) writes: > On Tue, 25 Apr 2006, Ralf Angeli wrote: > >>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). As far as I can see font-lock cares about that itself in case of keyword fontification if the value of the variable `font-lock-multiline' is t. There are `(put-text-property ... 'font-lock-multiline t)' calls in `font-lock-fontify-achored-keywords' and `font-lock-fontify-keywords-region'. As I wrote before, AUCTeX uses this feature without manually adding `font-lock-multiline' properties. -- Ralf