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: Wed, 26 Apr 2006 08:14:36 +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 1146032014 30918 80.91.229.2 (26 Apr 2006 06:13:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 06:13:34 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 08:13:31 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 1FYdHD-0005UO-52 for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 08:13:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYdHC-0003Ow-DX for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 02:13:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYdGy-0003Or-6A for emacs-devel@gnu.org; Wed, 26 Apr 2006 02:13:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYdGv-0003Oe-Q5 for emacs-devel@gnu.org; Wed, 26 Apr 2006 02:13:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYdGv-0003Ob-HH for emacs-devel@gnu.org; Wed, 26 Apr 2006 02:13:09 -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 1FYdJY-0003eS-9H for emacs-devel@gnu.org; Wed, 26 Apr 2006 02:15:52 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FYdGm-0005Ok-5i for emacs-devel@gnu.org; Wed, 26 Apr 2006 08:13:00 +0200 Original-Received: from dialin-212-144-187-037.pools.arcor-ip.net ([212.144.187.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Apr 2006 08:13:00 +0200 Original-Received: from angeli by dialin-212-144-187-037.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Apr 2006 08:13:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dialin-212-144-187-037.pools.arcor-ip.net Cancel-Lock: sha1:mbA3n1Dlr+kACXXiHsaiHDN5wPk= 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:53446 Archived-At: * Alan Mackenzie (2006-04-26) writes: > On Tue, 25 Apr 2006, Ralf Angeli wrote: > >>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'. > > Yes, but as far as I can see, these function are capable of putting the > text property only on bytes between BEG and END. It cannot modify BEG by > applying the property to bytes before BEG. Sure, but that was not was I was after anyway. I just wanted to mention a way for the f-l-m property to be applied automatically. As this only works for keyword fontification and not for syntactic keyword fontification (which your code is using at some point as Stefan pointed out) this point is moot now, however. -- Ralf