From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: jit-lock refontifies too much Date: Mon, 19 Sep 2005 20:03:11 -0400 Message-ID: References: <43251F5E.9040601@gmx.at> <873boa8l30.fsf-monnier+emacs@gnu.org> <4327B9C9.30406@gmx.at> <87oe6vx4he.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1127174963 22893 80.91.229.2 (20 Sep 2005 00:09:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Sep 2005 00:09:23 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 20 02:09:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EHVg8-0004bi-4B for ged-emacs-devel@m.gmane.org; Tue, 20 Sep 2005 02:08:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EHVg7-0006wf-Et for ged-emacs-devel@m.gmane.org; Mon, 19 Sep 2005 20:08:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EHVfQ-0006k4-8r for emacs-devel@gnu.org; Mon, 19 Sep 2005 20:07:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EHVfI-0006eR-3j for emacs-devel@gnu.org; Mon, 19 Sep 2005 20:07:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EHVfH-0006d2-TT for emacs-devel@gnu.org; Mon, 19 Sep 2005 20:07:15 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EHVbL-0003Sd-Sr for emacs-devel@gnu.org; Mon, 19 Sep 2005 20:03:11 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EHVbL-00042u-7K; Mon, 19 Sep 2005 20:03:11 -0400 Original-To: Stefan Monnier In-reply-to: <87oe6vx4he.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 14 Sep 2005 07:53:50 -0400) 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:43086 Archived-At: Are you going to install this patch? --- 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