emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] [UPDATE] Fix mouse click on flymake


From: Ergus
Subject: Re: [PATCH] [UPDATE] Fix mouse click on flymake
Date: Fri, 24 Jan 2025 14:09:09 +0100

Hi Eli:

Thanks for replying.

Please, find attached the new patch.

At some point I would like to add an extra feature to highlight the
exact error message in the tabulated list somehow (or at least to go
directly to the error line in the tabulated list, or using
pulse-momentary-highlight-one-line)

But that's a different feature and tabulated-list does not seem to bring
this feature directly (at last go to the tabular line based in some key)
so, for now I prefer not to hack flymake to do it artificially.

Best,
Ergus


On Fri, Jan 24, 2025 at 09:51:03AM +0200, Eli Zaretskii wrote:
Date: Fri, 24 Jan 2025 00:25:07 +0100
From: Ergus <spacibba@aol.com>
Cc: emacs-devel@gnu.org, juri@linkov.net, sbaugh@janestreet.com

I have a patch that actually works with margins (extremely simple now
BTW).

However, I am trying to get the same with fringes, but I don't find any
documentation on how to add a 'keymap property to a fringe. Is it even
possible?

Not via 'keymap' property, not AFAIK.  But if all you want is to call
a command when the user clicks on the fringe at a certain vertical
position, then it's possible by other means.  For example, "M-x gdb"
supports setting breakpoints by clicking C-mouse-1 on the fringe: the
breakpoint is set on the code line that is at the same vertical
position as the click.  See gdb-mouse-toggle-breakpoint-fringe in
gdb-mi.el.  Thus, instead of having a 'keymap' property on the fringe
at some location, your command should examine the click coordinates
and do nothing if they don't match the place where you want the click
to do its thing.

Attachment: flymake-indicator-margin-click.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]