From: Dmitry Gutov Date: Thu, 2 May 2019 22:47:15 +0000 (+0300) Subject: (xref--mouse-2): Fix not to jump to the next line X-Git-Tag: emacs-27.0.90~3013 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2b395c4c57c0274de38df7a4fe42dbc63a5000c;p=emacs.git (xref--mouse-2): Fix not to jump to the next line * lisp/progmodes/xref.el (xref--mouse-2): Fix not to jump to the next line. --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 18e97bd0f64..c7f015b94f0 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -731,7 +731,8 @@ references displayed in the current *xref* buffer." (interactive "e") (mouse-set-point event) (forward-line 0) - (xref--search-property 'xref-item) + (or (get-text-property (point) 'xref-item) + (xref--search-property 'xref-item)) (xref-show-location-at-point)) (defun xref--insert-xrefs (xref-alist)