GNU bug report logs - #30964
python-mode failing "overlapping strings" assertion lately

Previous Next

Package: emacs;

Reported by: dancol <at> dancol.org

Date: Tue, 27 Mar 2018 18:10:01 UTC

Severity: normal

Done: "Daniel Colascione" <dancol <at> dancol.org>

Bug is archived. No further changes may be made.

Full log


Message #38 received at 30964 <at> debbugs.gnu.org (full text, mbox):

From: "Daniel Colascione" <dancol <at> dancol.org>
To: "Noam Postavsky" <npostavs <at> gmail.com>
Cc: "Clément Pit-Claudel"
 <clement.pitclaudel <at> live.com>, Philipp Stephani <p.stephani2 <at> gmail.com>,
 30964 <at> debbugs.gnu.org, dancol <at> dancol.org
Subject: Re: bug#30964: python-mode failing "overlapping strings" assertion
 lately
Date: Sat, 16 Jun 2018 13:55:49 -0700
So it turns out that it wasn't an off-by-one problem at all.  Instead,
python was using (re-search-forward (rx (syntax string-delimiter))), which
was matching incorrectly because re-search-forward didn't update syntax as
it matched. It didn't do that because regex matching in general wasn't
reentrant, and it wasn't reentrant because regex bytecode programs are
self-modifying.

I checked in some work that makes regex searching update syntax as needed.





This bug report was last modified 6 years and 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.