From: "Mattias Engdegård" <mattiase@bredband.net>
To: 13335@debbugs.gnu.org
Subject: bug#13335: 24.1; compilation misparses GNU-style message locations
Date: Wed, 2 Jan 2013 15:53:19 +0100 [thread overview]
Message-ID: <AA9BDA2D-7658-45CC-BD71-672C138CCFDA@bredband.net> (raw)
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
next reply other threads:[~2013-01-02 14:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-02 14:53 Mattias Engdegård [this message]
2013-01-10 7:53 ` bug#13335: 24.1; compilation misparses GNU-style message locations Glenn Morris
2013-01-10 18:52 ` Mattias Engdegård
2013-01-10 20:32 ` Glenn Morris
2013-01-14 1:08 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AA9BDA2D-7658-45CC-BD71-672C138CCFDA@bredband.net \
--to=mattiase@bredband.net \
--cc=13335@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.