]> git.eshelyaron.com Git - emacs.git/commitdiff
Use xref-goto-xref as the xref mouse binding
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 2 May 2022 08:01:55 +0000 (10:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 2 May 2022 08:01:55 +0000 (10:01 +0200)
* lisp/progmodes/xref.el (xref--button-map): Keep the
xref-goto-xref binding instead of select-and-show to be more
similar to grep buffers.

lisp/progmodes/xref.el

index b379448cdb6fb69b78b8f80aea529d48654e6678..6e763eef018f193c813be9a82fe623113c163baf 100644 (file)
@@ -966,7 +966,7 @@ beginning of the line."
 (defvar xref--button-map
   (let ((map (make-sparse-keymap)))
     (define-key map [follow-link] 'mouse-face)
-    (define-key map [mouse-2] #'xref-select-and-show-xref)
+    (define-key map [mouse-2] #'xref-goto-xref)
     map))
 
 (defun xref-select-and-show-xref (event)