emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] [UPDATE3] Fix mouse click on flymake


From: Ergus
Subject: Re: [PATCH] [UPDATE3] Fix mouse click on flymake
Date: Sat, 25 Jan 2025 22:26:38 +0100

Hi Juri:

On Sat, Jan 25, 2025 at 07:48:33PM +0200, Juri Linkov wrote:
Please find attached the patch with the fix + the new feature.

Your previous patch worked at least for margins, but new one doesn't work.

Try it now please. I actually detected the issue just now and was
planning to submit a new patch. when I saw your message

The issue was that I was checking for errors only in the event
position. But on fringe events `pos' is always the line start position,
where not necessarily needs to be any error overlay.

Now the code considers the whole line when the event is from the fringe
or margin and uses only pos in the flymake-menu's command.

If the line has more than one error, it highlights the first one
returned by flymake-diagnostics.

It includes:

1. A new defcustom equivalent to xref-after-jump-hook.
2. An optional argument to flymake-show-buffer-diagnostics.
3. Modification to flymake-menu to use a new function that also highlights
the candidate when possible.

Thanks, nice idea.

They look like too many, but are actually just a few lines, so I put
them together.

I wonder why you don't send patches to bug-gnu-emacs
where it's easier to track them.

I actually prefer to create a branch and so on, but I thought that this
patch would be just a couple of lines (like in my first message). But
things are never as simple as I would like ;)

Best,
Ergus

Attachment: flymake-indicator-margin-click_v3.patch
Description: Text document


reply via email to

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