GNU bug report logs - #61093
Indented file names confuse compilation buffer

Previous Next

Package: emacs;

Reported by: Sascha Ziemann <ceving <at> gmail.com>

Date: Fri, 27 Jan 2023 11:12:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sascha Ziemann <ceving <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Indented file names confuse compilation buffer
Date: Fri, 27 Jan 2023 12:11:14 +0100
[Message part 1 (text/plain, inline)]
The Go compiler indents sometimes filenames. I have attached a
htmlfontified compilation buffer showing this. It also shows that the
parser of the compilation buffer gets confused by this. The
problematic line is:

"    ./config.go:10:5: other declaration of config_file"

Some code thinks the whole line is a file name, because the whole line
is a hyperlink (underlined).

Some other code thinks only the beginning of the line is a file name
(red). But this part also thinks the line number is part of the file
name and marks the column number as line number (purple).

I think it might be ok to ignore leading whitespace, because file
names do not start very often with whitespace.
[compilation.html (text/html, attachment)]

This bug report was last modified 2 years and 145 days ago.

Previous Next


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