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.