GNU bug report logs - #66041
30.0.50; Should 'flymake-note-echo' inherit from 'compilation-info'?

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Sun, 17 Sep 2023 04:43:02 UTC

Severity: minor

Found in version 30.0.50

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: João Távora <joaotavora <at> gmail.com>
Cc: jporterbugs <at> gmail.com, 66041 <at> debbugs.gnu.org
Subject: bug#66041: 30.0.50; Should 'flymake-note-echo' inherit from 'compilation-info'?
Date: Mon, 18 Sep 2023 14:42:07 +0300
> From: João Távora <joaotavora <at> gmail.com>
> Date: Mon, 18 Sep 2023 11:46:55 +0100
> Cc: Jim Porter <jporterbugs <at> gmail.com>, 66041 <at> debbugs.gnu.org
> 
> On Mon, Sep 18, 2023, 11:44 Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>  > Cc: 66041 <at> debbugs.gnu.org
>  > From: João Távora <joaotavora <at> gmail.com>
>  > Date: Sun, 17 Sep 2023 23:15:31 +0100
>  > 
>  > emacs -Q
>  > M-x flymake-mode RET
>  > M-: (setq flymake-show-diagnostics-at-end-of-line t) RET
>  > M-x erase-buffer RET
>  > h e l l o
>  > 
>  > The first bug I find is that the exclamation mark on the fringe is
>  > green, but it should be yellow, since, presumably a warning is
>  > more important than a note.
>  > 
>  > The second bug has to do with the placement of the cursor when
>  > two "eol overlays" are present.  The cursor shouldn't be placed
>  > in the middle of them, since they represent unreachable areas of
>  > the buffer.
> 
>  When I try the above, the cursor is at the end of "hello", and the
>  overlay with the warning is displayed after it.  So I don't think I
>  understand what you mean by "in the middle of them".
> 
> Sorry. The recipe is missing a single SPC character after the hello, so that the style warning is
> triggered.

You have there two overlays, each one with a before-string, and each
string has its first character propertized with (cursor t).  So Emacs
picks up one of the two overlay strings to place the cursor, and it
just happens to be not the one you wanted.




This bug report was last modified 1 year and 296 days ago.

Previous Next


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