unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13335: 24.1; compilation misparses GNU-style message locations
@ 2013-01-02 14:53 Mattias Engdegård
  2013-01-10  7:53 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Mattias Engdegård @ 2013-01-02 14:53 UTC (permalink / raw)
  To: 13335

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






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-14  1:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-02 14:53 bug#13335: 24.1; compilation misparses GNU-style message locations Mattias Engdegård
2013-01-10  7:53 ` Glenn Morris
2013-01-10 18:52   ` Mattias Engdegård
2013-01-10 20:32     ` Glenn Morris
2013-01-14  1:08   ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).