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 09:36:20 -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 1427809068 26401 80.91.229.3 (31 Mar 2015 13:37:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 13:37:48 +0000 (UTC) Cc: 20235@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 31 15:37:36 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 1YcwLw-0000ys-Me for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 15:37:12 +0200 Original-Received: from localhost ([::1]:38747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcwLw-0004CI-6e for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 09:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcwLs-0004C6-1i for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 09:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcwLo-0002BT-0n for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 09:37:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcwLn-0002BP-TY for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 09:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YcwLn-0003ok-9e for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 09:37:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Mar 2015 13:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20235 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142780900514646 (code B ref -1); Tue, 31 Mar 2015 13:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Mar 2015 13:36:45 +0000 Original-Received: from localhost ([127.0.0.1]:40996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcwLT-0003o9-RK for submit@debbugs.gnu.org; Tue, 31 Mar 2015 09:36:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38908) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcwLN-0003ns-06 for submit@debbugs.gnu.org; Tue, 31 Mar 2015 09:36:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcwLC-00027o-Fq for submit@debbugs.gnu.org; Tue, 31 Mar 2015 09:36:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcwLC-00027f-D9 for submit@debbugs.gnu.org; Tue, 31 Mar 2015 09:36:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcwLB-00049W-Ez for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 09:36:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcwL7-00027C-Dv for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 09:36:25 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:45542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcwL7-000276-9s; Tue, 31 Mar 2015 09:36:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kLYdmohGMA2EMA4M+A4NwBKg7 X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kLYdmohGMA2EMA4M+A4NwBKg7 X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115042989" 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 09:36:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 79E611054; Tue, 31 Mar 2015 09:36:20 -0400 (EDT) In-Reply-To: <87oan9lhwk.fsf@gnu.org> (Tassilo Horn's message of "Tue, 31 Mar 2015 09:56:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:101075 Archived-At: > 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))