Subject: Re: bug#78106: [Feature Request] EGLOT: Optionally make code action indications use mouse clicks

From: João Távora <[email-masked]>
Date: Wed, 30 Apr 2025 15:06:52 +0100

Try clicking with the middle mouse button. It's the same button you use
when clicking a diagnostic that has an action.

João Távora

On Tue, Apr 29, 2025, 00:32 Elijah Gabe Pérez <[email-masked]> wrote:

> João Távora <[email-masked]> writes:
>
> > They should be mouse clickable, though the margin and fringe are
> contested for multiple functions (like
> > opening the Flymake diagnostics buffer when theres a diagnostic on the
> line).
> >
> > So please provide an Emacs -Q recipe for reproducing your problem
> exactly.
>
> 1. Run emacs -Q
> 2. eval:
>     (set-window-margins (get-buffer-window) 3)
>     (setopt eglot-code-action-indications
>             '(eldoc-hint margin nearby mode-line))
> 3. Open a file which supports eglot (example: any Emacs C source file) and
>    enable eglot.
> 4. Move cursor/point to where there is any code action available.
>    (for example in any Emacs C source file, move to any DEFUN or macro)
> 5. And click the 💡 icon where it appears (margin/mode-line/before point).
>
>    It doesn't nothing, something curious is that with mode-line/nearby
>    options the lightbulb icon have a `mouse-face' property, which gives the
>    impression that you can click it.
>
> --
>                                           - E.G via GNU Emacs and Org.
>