GNU bug report logs -
#7725
compilation-mode misinterprets column range on a single line
Previous Next
Reported by: Ben Pfaff <blp <at> cs.stanford.edu>
Date: Fri, 24 Dec 2010 12:17:01 UTC
Severity: important
Merged with 13335
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7725 in the body.
You can then email your comments to 7725 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7725
; Package
emacs
.
(Fri, 24 Dec 2010 12:17:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ben Pfaff <blp <at> cs.stanford.edu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 24 Dec 2010 12:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The GNU coding standards, at
http://www.gnu.org/prep/standards/html_node/Errors.html#Errors
say that one possible form for an error message is to mention a
line number and a range of columns, like this:
file:line.c1-c2: message
However, Emacs compilation-mode misinterprets this form: it
treats c2 as a second line number.
For example, suppose I put the following in a.txt:
----------------------------------------------------------------------
One line of text.
Second line of text.
Third line of text.
----------------------------------------------------------------------
and then the following in b.txt:
----------------------------------------------------------------------
-*- compilation -*-
a.txt:1.2-3: error: This error message will be misinterpreted as lines 1-3.
a.txt:1.2-1.3: error: This error message will be interpreted correctly.
----------------------------------------------------------------------
If I click on the first error message in b.txt, then Emacs will
briefly highlight all of a.txt except for the first character of
the first line. If I click on the second error message, then I
get the expected behavior for the first message, that is, the
second and third characters of the first line in a.txt are
highlighted.
M-x emacs-version reports: GNU Emacs 23.2.1 (i486-pc-linux-gnu,
GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian
I haven't made any local changes, and I see the same behavior
with "emacs -q" to turn off my .emacs file.
Thanks,
Ben.
--
Ben Pfaff
http://benpfaff.org
Forcibly Merged 7725 13335.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 22 Feb 2013 01:17:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 22 Mar 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.