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: Mon, 6 May 2019 18:10:43 +0000 Message-ID: <20190506181043.GA16338@ACM> References: <83wp3h7tar.fsf@gnu.org> <87o94oz210.fsf@tcd.ie> <20190430113302.GB4142@ACM> <8736lzirbn.fsf@tcd.ie> <83h8afsee5.fsf@gnu.org> <83y33qovrw.fsf@gnu.org> <20190504124102.GB4139@ACM> <83pnoyl4t7.fsf@gnu.org> <20190505090622.GA4193@ACM> <83h8a7k33z.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="175622"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: contovob@tcd.ie, 28850@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 06 20:11:14 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 1hNi54-000jZz-C8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2019 20:11:14 +0200 Original-Received: from localhost ([127.0.0.1]:60433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNi53-0003Gg-Aj for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2019 14:11:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNi4v-0003GM-By for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 14:11:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNi4u-0002ad-EF for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 14:11:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNi4s-0002Zp-KE for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 14:11:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hNi4s-0005th-B0 for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 14:11: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: Mon, 06 May 2019 18:11:02 +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.155716625322650 (code B ref 28850); Mon, 06 May 2019 18:11:02 +0000 Original-Received: (at 28850) by debbugs.gnu.org; 6 May 2019 18:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:57350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNi4i-0005tG-Io for submit@debbugs.gnu.org; Mon, 06 May 2019 14:10:52 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:16515 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hNi4g-0005t6-C0 for 28850@debbugs.gnu.org; Mon, 06 May 2019 14:10:51 -0400 Original-Received: (qmail 93085 invoked by uid 3782); 6 May 2019 18:10:44 -0000 Original-Received: from acm.muc.de (p4FE15DE3.dip0.t-ipconnect.de [79.225.93.227]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 06 May 2019 20:10:43 +0200 Original-Received: (qmail 16397 invoked by uid 1000); 6 May 2019 18:10:43 -0000 Content-Disposition: inline In-Reply-To: <83h8a7k33z.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:158837 Archived-At: Hello, Eli. On Mon, May 06, 2019 at 18:35:28 +0300, Eli Zaretskii wrote: > > Date: Sun, 5 May 2019 09:06:22 +0000 > > Cc: contovob@tcd.ie, 28850@debbugs.gnu.org > > From: Alan Mackenzie > > That's the theory. The fix, which is now obvious, is to (setq > > before-sws-pos ...) after moving back over a macro. Perhaps I should > > check the result of c-down-list-backward too, but that's to be done > > after checking the current fix. > > I can't actually test this myself, so would you please try out the patch > > below in your test setup, and let me know whether it fixes this nasty > > bug. > With this patch, the problem is gone, so I guess you hit the nail on > the head. Thanks. Thank you! I've committed that patch. > (In terms of testing, I think you can visit textprop.c, then turn on > jit-lock-stealth, and let Emacs run for a while. Without the patch, > you should see the error message pretty soon.) Are you sure you mean textprop.c? With jit-lock-stealth-mode enabled, I couldn't get the error on textprop.c. That file only has seven CPP constructs, all right near the start of the buffer, and none of them seem to have the closing brace/bracket/parenthesis in the right place to trigger the error. Anyway, it's probably not that important. There was definitely a bug in CC Mode at that place in c-beginning-of-statement-1, and there was definitely a bug in CC Mode which threw an exception in your stealthy fontification. The patch appears to have fixed both. I'll close bug #28850 (again), seeing as how Basil C. has confirmed that "his" bug is fixed, too. -- Alan Mackenzie (Nuremberg, Germany).