]> git.eshelyaron.com Git - emacs.git/commitdiff
(xref-find-definitions-at-mouse): Cease setting point
authorEshel Yaron <me@eshelyaron.com>
Sat, 8 Jun 2024 19:41:00 +0000 (21:41 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 8 Jun 2024 19:41:00 +0000 (21:41 +0200)
lisp/progmodes/xref.el

index 2451fc323f1e900d076d8f6f8c82bedd15b87e0a..d234aa1a026ac864710d5f815b205b3126b7aeb9 100644 (file)
@@ -1811,9 +1811,7 @@ This command is intended to be bound to a mouse event."
            (mouse-set-point event)
            (xref-backend-identifier-at-point (xref-find-backend)))))
     (if identifier
-        (progn
-          (mouse-set-point event)
-          (xref-find-definitions identifier))
+        (xref-find-definitions identifier)
       (user-error "No identifier here"))))
 
 ;;;###autoload