From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#20235: 25.0.50; Commit 81b0eade25e57fc39f9ee75be3f5adef8af93035 breaks font-lock Date: Tue, 31 Mar 2015 17:04:45 -0400 Message-ID: References: <87oan9lhwk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427835936 16393 80.91.229.3 (31 Mar 2015 21:05:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 21:05:36 +0000 (UTC) To: 20235-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 31 23:05:19 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yd3La-00046e-5f for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 23:05:18 +0200 Original-Received: from localhost ([::1]:40599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd3LZ-0003qK-FE for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 17:05:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd3LT-0003lT-VE for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 17:05:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yd3LM-0006kn-1S for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 17:05:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd3LL-0006kc-UX for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 17:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yd3LL-0007ri-ML for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 17:05:03 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Mar 2015 21:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20235 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20235@debbugs.gnu.org, monnier@iro.umontreal.ca, tsdh@gnu.org Original-Received: via spool by 20235-done@debbugs.gnu.org id=D20235.142783589330202 (code D ref 20235); Tue, 31 Mar 2015 21:05:03 +0000 Original-Received: (at 20235-done) by debbugs.gnu.org; 31 Mar 2015 21:04:53 +0000 Original-Received: from localhost ([127.0.0.1]:41453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd3LB-0007r3-8T for submit@debbugs.gnu.org; Tue, 31 Mar 2015 17:04:53 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40536) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd3L9-0007qp-0P for 20235-done@debbugs.gnu.org; Tue, 31 Mar 2015 17:04:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBVigLCzQSFBgNNxqHZqIRjANhDAODPgMnK4MeBKg7 X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBVigLCzQSFBgNNxqHZqIRjANhDAODPgMnK4MeBKg7 X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115083279" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Mar 2015 17:04:45 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 657DF1054; Tue, 31 Mar 2015 17:04:45 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Tue, 31 Mar 2015 09:36:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101087 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: >> With the above mentioned commit, font-lock is broken. Finding some >> source file (no matter if elisp, ruby or what else), only the beginning >> of the buffer is fontified, the remainder is not and will not be >> fontified. > Sorry, I just installed the patch below which should fix it, > Stefan > diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el > index 5fe2232..0faabeb 100644 > --- a/lisp/jit-lock.el > +++ b/lisp/jit-lock.el > @@ -369,8 +369,8 @@ is active." > ;; already run to avoid running them redundantly when we get to > ;; those chunks. > (setq tight-beg (max (or tight-beg (point-min)) this-beg)) > - (setq tight-end (max (or tight-end (point-max)) this-end)) > - (setq loose-beg (max loose-beg this-beg)) > + (setq tight-end (min (or tight-end (point-max)) this-end)) > + (setq loose-beg (min loose-beg this-beg)) > (setq loose-end (max loose-end this-end)) > nil))) > `(,(min tight-beg beg) ,(max tight-end end) ,loose-beg ,loose-end))) > @@ -417,7 +417,8 @@ Defaults to the whole buffer. END can be out of bounds." > (quit (put-text-property start next 'fontified nil) > (signal (car err) (cdr err)))))) > - ;; In case we fontified more than requested, take note. > + ;; In case we fontified more than requested, take advantage of the > + ;; good news. > (when (or (< tight-beg start) (> tight-end next)) > (put-text-property tight-beg tight-end 'fontified t))