emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix mouse click on flymake


From: Eli Zaretskii
Subject: Re: [PATCH] Fix mouse click on flymake
Date: Fri, 24 Jan 2025 09:51:03 +0200

> 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.



reply via email to

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