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: Ergus
Subject: Re: [PATCH] Fix mouse click on flymake
Date: Mon, 20 Jan 2025 23:33:58 +0100
User-agent: K-9 Mail for Android

Maybe Eli could bring some insights here? Eli?


On January 20, 2025 6:20:12 PM GMT+01:00, Juri Linkov <juri@linkov.net> wrote:
(overlay-put margin-overlay 'before-string
(propertize " " 'display
(list '(margin left-margin)
(propertize "b"
'face 'error
'mouse-face 'highlight
'help-echo "HEE error message"
'keymap margin-keymap)))))

When I move the mouse over the 'b' letter in the margin I can see: "My
error", but when I click (mouse-1) I don't get the "Clicked!!"
message but an error message: "<left-margin> <mouse-1> is undefined".

Is this intended?

Either this is a bug, or this feature was not implemented at all.
I guess the latter. Because for example outline-minor-mode-cycle-map uses

(keymap-set map "<left-margin> <mouse-1>" 'outline-cycle)

instead of adding 'keymap' to the overlay.

reply via email to

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