GNU bug report logs -
#29201
26.0.90; Flymake skips indicator when a backend reports a diagnostic at EOB
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Tue, 7 Nov 2017 23:28:02 UTC
Severity: normal
Tags: fixed
Found in version 26.0.90
Fixed in version 26.1
Done: joaotavora <at> gmail.com (João Távora)
Bug is archived. No further changes may be made.
Full log
Message #15 received at 29201 <at> debbugs.gnu.org (full text, mbox):
On 11/9/17 11:18 PM, João Távora wrote:
> "Backtracking a little" sounds OK but highlighting the last symbol is a
> little more contentious and harder to do (though I'm open to that
> argument).
That's okay.
> Anyway, this is a simple bug because my original idea was to make this
> case behave like the case where the last line is referenced but without
> a column indication. Inside flymake-diag-region, this should funnel into
> fallback-eol but in this particular case it wasn't doind that because I
> forgot that (goto-char one-trillion) doesn't error.
>
> Fixed in 535688a4181ae4052db354ce2b877507f11c9e66.
The idea sounds fine, but it doesn't work when the last line of the
buffer is empty (e.g. when the file ends with a newline, like with
require-final-newline set to t): highlighting the last line still ends
up creating a zero-size overlay.
So I think the important point is to skip the trailing whitespace first.
Maybe this calls for a test case or two.
This bug report was last modified 7 years and 278 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.