GNU bug report logs -
#28349
26.0.50; compilation mode syntax highlighting incorrect
Previous Next
Reported by: Richard Copley <rcopley <at> gmail.com>
Date: Mon, 4 Sep 2017 19:23:01 UTC
Severity: normal
Found in version 26.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #36 received at 28349 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 11 Sep 2017 15:54, "Eli Zaretskii" <eliz <at> gnu.org> wrote:
> From: Richard Copley <rcopley <at> gmail.com>
> Date: Sun, 10 Sep 2017 23:41:45 +0100
> Cc: Tom Tromey <tom <at> tromey.com>, 28349 <at> debbugs.gnu.org
>
> This is the backtrace when string-match sets the match data to (0 3):
So you are saying the problem is in the call to string-match? Or does
some code clobber match-data between that call and when the data is
used?
The call to string-match clobbers the correct match data, which was
obtained just before by re-search-forward, in compilation-parse-errors.
FYI this is not new and not related to Tom's change as far as I can see.
In compilation-parse-errors (compile.el:1426) (upcase comments added):
[...]
(goto-char start)
(while (re-search-forward pat end t) ;; SET MATCH-DATA
(when (setq props (compilation-error-properties ;; CLOBBER IT
file line end-line col end-col (or type 2)
fmt))
[...]
;; USE IT
[Message part 2 (text/html, inline)]
This bug report was last modified 7 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.