bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#65578: Eglot with mouse


From: Juri Linkov
Subject: bug#65578: Eglot with mouse
Date: Wed, 30 Aug 2023 19:35:45 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

>>> @@ -1637,7 +1637,9 @@ xref-find-definitions-at-mouse
>>> -        (xref-find-definitions identifier)
>>> +        (progn
>>> +          (mouse-set-point event)
>>> +          (xref-find-definitions identifier))
>>>         (user-error "No identifier here"))))
>> The problem with this solution is that when it doesn't find
>> the identifier then it leaves point at the wrong place.
>
> I'm not sure is a big problem, but we could save the original position and
> restore it in case of error too:

Thanks.  I tend to agree with João that your initial version would be
sufficient to leave point at the position of right-clicking.

Then the same change is also needed in xref-find-references-at-mouse
with mouse-set-point before xref-find-references.





reply via email to

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