From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: jit-lock refontifies too much Date: Thu, 15 Sep 2005 07:31:22 +0200 Message-ID: <4329072A.1090606@gmx.at> References: <43251F5E.9040601@gmx.at> <873boa8l30.fsf-monnier+emacs@gnu.org> <4327B9C9.30406@gmx.at> <87oe6vx4he.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1126765401 12620 80.91.229.2 (15 Sep 2005 06:23:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2005 06:23:21 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 15 08:23:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EFn8u-00035k-G0 for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 08:22:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFn8t-0003eb-Km for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2005 02:22:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EFmtd-0000Jr-22 for emacs-devel@gnu.org; Thu, 15 Sep 2005 02:06:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EFmtY-0000J4-7f for emacs-devel@gnu.org; Thu, 15 Sep 2005 02:06:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFmoW-00075X-AM for emacs-devel@gnu.org; Thu, 15 Sep 2005 02:01:40 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EFmU8-00029G-6L for emacs-devel@gnu.org; Thu, 15 Sep 2005 01:40:36 -0400 Original-Received: (qmail invoked by alias); 15 Sep 2005 05:40:34 -0000 Original-Received: from N910P007.adsl.highway.telekom.at (EHLO [62.47.57.167]) [62.47.57.167] by mail.gmx.net (mp007) with SMTP; 15 Sep 2005 07:40:34 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Stefan Monnier In-Reply-To: <87oe6vx4he.fsf-monnier+emacs@gnu.org> X-Y-GMX-Trusted: 0 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:42951 Archived-At: > How 'bout the patch below instead? > > > Stefan > > > --- orig/lisp/font-lock.el > +++ mod/lisp/font-lock.el > @@ -1058,7 +1058,8 @@ > 'font-lock-multiline nil) > (point-max))) > (goto-char end) > - (setq end (line-beginning-position 2)) > + ;; Round up to a whole line. > + (unless (bolp) (setq end (line-beginning-position 2))) > ;; Now do the fontification. > (font-lock-unfontify-region beg end) > (when font-lock-syntactic-keywords > > ... splendide