From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Excessive refontification when setting jit-lock-context-unfontify-pos Date: Wed, 25 Apr 2007 03:28:15 -0400 Message-ID: References: <87bqhdaajz.fsf@neutrino.caeruleus.net> <877is1wjti.fsf@neutrino.caeruleus.net> <87ps5tufmf.fsf@neutrino.caeruleus.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177486128 29849 80.91.229.12 (25 Apr 2007 07:28:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2007 07:28:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ralf Angeli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 25 09:28:47 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hgbvh-0008RQ-Rd for ged-emacs-devel@m.gmane.org; Wed, 25 Apr 2007 09:28:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hgc1I-0007au-9y for ged-emacs-devel@m.gmane.org; Wed, 25 Apr 2007 03:34:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hgc1E-0007aZ-0b for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:34:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hgc1C-0007aA-0M for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:34:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hgc1B-0007a7-RE for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:34:25 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25] helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hgbva-0002si-7v for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:28:38 -0400 Original-Received: from pastel.home ([74.12.209.8]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070425072815.ZCTM1671.tomts5-srv.bellnexxia.net@pastel.home> for ; Wed, 25 Apr 2007 03:28:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DB5A48041; Wed, 25 Apr 2007 03:28:15 -0400 (EDT) In-Reply-To: <87ps5tufmf.fsf@neutrino.caeruleus.net> (Ralf Angeli's message of "Wed\, 25 Apr 2007 08\:34\:16 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:70068 Archived-At: >>> j-l-c-u-p seemed to be the only mechanism working reliably. In my >>> f-l-fontify-region-function I tried to set the f-l-multiline and >>> j-l-defer-multiline properties on the region in question which had no >>> effect. >> >> In your f-l-fontify-region-function, you should do what you'd otherwise do >> in f-l-extend-region: i.e. extend the region. No messing with >> font-lock-multiline or other properties. Just computing a new (larger) >> region and passing that to f-l-default-fontify-region. > That's what I do. (See `font-latex-fontify-region'.) But the > multiline construct does not get fully highlighted if I don't set > j-l-c-u-p or set the fontified property to nil. Try C-l to make sure that the highlighting is really absent from the buffer, rather than merely being "not yet displayed". Stefan