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: Juri Linkov
Subject: Re: [PATCH] Fix mouse click on flymake
Date: Mon, 20 Jan 2025 19:20:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

>    (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]