GNU bug report logs - #13335
24.1; compilation misparses GNU-style message locations

Previous Next

Package: emacs;

Reported by: Mattias EngdegÄrd <mattiase <at> bredband.net>

Date: Wed, 2 Jan 2013 15:31:01 UTC

Severity: important

Merged with 7725

Found in version 24.1

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#13335: closed (24.1; compilation misparses GNU-style message
 locations)
Date: Mon, 14 Jan 2013 01:09:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 13 Jan 2013 20:08:35 -0500
with message-id <mxbocslgfg.fsf <at> fencepost.gnu.org>
and subject line Re: bug#13335: 24.1; compilation misparses GNU-style message locations
has caused the debbugs.gnu.org bug report #13335,
regarding 24.1; compilation misparses GNU-style message locations
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
13335: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13335
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mattias EngdegÄrd <mattiase <at> bredband.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1; compilation misparses GNU-style message locations
Date: Wed, 2 Jan 2013 15:53:19 +0100
According to the GNU standards, a valid error message format is

FILE:LINE.COL1-COL2: MESSAGE

but this is not parsed correctly by the "gnu" regexp in compile.el;
it is interpreted as the line range LINE-COL2 starting at column COL1.
The consequence is that Emacs does not highlight the correct part of the
buffer when entering the file at that location.

This was disovered when writing a tool whose diagnostics would work
nicely with Emacs. Using the longer form

FILE:LINE.COL1-LINE.COL2: TEXT

worked correctly. According to etc/compilation.txt, it looks like the
intention is to allow either format.

The "gnu" regexp is quite complex and it is not immediately obvious
what is wrong. There is also what appears to be a superfluous backslash
on the last line:

 *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)"
             ^
Since "\[" just means "[", this does not affect the actual regexp.

In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll  
bars)
 of 2012-07-30 on bach.e.vtech



[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 13335-done <at> debbugs.gnu.org
Subject: Re: bug#13335: 24.1; compilation misparses GNU-style message locations
Date: Sun, 13 Jan 2013 20:08:35 -0500
Version: 24.4

Fixed in trunk.


This bug report was last modified 12 years and 87 days ago.

Previous Next


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