[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.
- Re: [PATCH] Fix mouse click on flymake, (continued)
- Re: [PATCH] Fix mouse click on flymake, Ergus, 2025/01/19
- Re: [PATCH] Fix mouse click on flymake, Juri Linkov, 2025/01/19
- Re: [PATCH] Fix mouse click on flymake, Ergus, 2025/01/19
- Message not available
- Re: [PATCH] Fix mouse click on flymake, Ergus, 2025/01/20
- Re: [PATCH] Fix mouse click on flymake, Juri Linkov, 2025/01/20
- Re: [PATCH] Fix mouse click on flymake, Ergus, 2025/01/20
- Re: [PATCH] Fix mouse click on flymake, Eli Zaretskii, 2025/01/21
- Re: [PATCH] Fix mouse click on flymake, Ergus, 2025/01/21
- Re: [PATCH] Fix mouse click on flymake, Eli Zaretskii, 2025/01/23
- Re: [PATCH] Fix mouse click on flymake, Ergus, 2025/01/23
- Re: [PATCH] Fix mouse click on flymake,
Eli Zaretskii <=
- Re: [PATCH] [UPDATE] Fix mouse click on flymake, Ergus, 2025/01/24
- Re: [PATCH] [UPDATE2] Fix mouse click on flymake, Ergus, 2025/01/24
- Re: [PATCH] [UPDATE2] Fix mouse click on flymake, Juri Linkov, 2025/01/25
- Re: [PATCH] [UPDATE3] Fix mouse click on flymake, Ergus, 2025/01/25
- Re: [PATCH] Fix mouse click on flymake, Ergus, 2025/01/19