Subject: Re: bug#61395: 28.2; bug-reference warning seems incorrect

From: Tassilo Horn <[email-masked]>
Date: Fri, 10 Feb 2023 19:15:42 +0100

Tom Tromey <[email-masked]> writes:

> Tassilo> many times in buffer.c but `syntax-ppss' doesn't seem to
> Tassilo> clobber match-data.
>
> Seems like it would depend on whether the major mode uses regexps
> here?  My case is using tcl-mode FWIW.

Hah, indeed!  It was easy to reproduce with a tcl file.

> However a superficial look at the syntax-ppss code shows it's calling
> save-match-data in some spots, so perhaps this isn't the bug.

It is.  I've fixed it on the emacs-29 branch.

Thanks a lot and 100 bonus points to Kévin who has been right with his
analysis.

Bye,
Tassilo