From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#28850: 26.0.90; Error running timer 'jit-lock-stealth-fontify': (error "Invalid search bound (wrong side of point)") Date: Tue, 30 Apr 2019 15:50:52 +0000 Message-ID: <20190430155052.GE4142@ACM> References: <834lqoa9jj.fsf@gnu.org> <20171024203312.GA5875@ACM> <20171025191137.GA16060@ACM> <83wp3h7tar.fsf@gnu.org> <87o94oz210.fsf@tcd.ie> <20190430113302.GB4142@ACM> <8736lzirbn.fsf@tcd.ie> <20190430133203.GC4142@ACM> <87wojb7glg.fsf@tcd.ie> <83d0l3sdzg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14287"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: "Basil L. Contovounesios" , 28850@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 30 18:24:41 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLVYf-0003a0-Ee for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Apr 2019 18:24:41 +0200 Original-Received: from localhost ([127.0.0.1]:49677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLVYe-0000DV-AA for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Apr 2019 12:24:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLV2B-00069M-Rg for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2019 11:51:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLV28-0007RN-P6 for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2019 11:51:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLV26-0007Pr-1V for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2019 11:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hLV25-0002X9-VX for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2019 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Apr 2019 15:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28850 X-GNU-PR-Package: emacs Original-Received: via spool by 28850-submit@debbugs.gnu.org id=B28850.15566394599731 (code B ref 28850); Tue, 30 Apr 2019 15:51:01 +0000 Original-Received: (at 28850) by debbugs.gnu.org; 30 Apr 2019 15:50:59 +0000 Original-Received: from localhost ([127.0.0.1]:42217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLV22-0002Ws-K9 for submit@debbugs.gnu.org; Tue, 30 Apr 2019 11:50:58 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:29973 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hLV21-0002Wk-3c for 28850@debbugs.gnu.org; Tue, 30 Apr 2019 11:50:57 -0400 Original-Received: (qmail 99233 invoked by uid 3782); 30 Apr 2019 15:50:53 -0000 Original-Received: from acm.muc.de (p4FE15EC5.dip0.t-ipconnect.de [79.225.94.197]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 30 Apr 2019 17:50:52 +0200 Original-Received: (qmail 23092 invoked by uid 1000); 30 Apr 2019 15:50:52 -0000 Content-Disposition: inline In-Reply-To: <83d0l3sdzg.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:158512 Archived-At: Hello, Eli. On Tue, Apr 30, 2019 at 18:35:15 +0300, Eli Zaretskii wrote: > > From: "Basil L. Contovounesios" > > Cc: Eli Zaretskii , <28850@debbugs.gnu.org> > > Date: Tue, 30 Apr 2019 14:44:27 +0100 > > > I'm just thinking, maybe this fix should have gone into the emacs-26 > > > branch. Not sure about that. > > The patch looks unproblematic enough to me, but that is, of course, > > Eli's call. > Btw, I'm not sure I understand the need for calling (point) in that > patch. Both functions return the value of point, and they both return > LIMIT if they fail to find a match, so just testing the return value > against LIMIT should be enough, no? What happens is the search-forward-regexp finds a match entirely before LIMIT, but the body of the loop processes the entire construct introduced by that match and leaves point at the end of the construct. This can be after LIMIT. Hence the check on (point) before the search-forward-regexp. -- Alan Mackenzie (Nuremberg, Germany).