1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 23:10:47 -08:00

Perform xref jump even inside indentation or at eol

* lisp/progmodes/xref.el (xref-goto-xref): Perform xref jump even inside
indentation or at eol.
This commit is contained in:
Dmitry Gutov 2015-01-18 10:15:41 +02:00
parent 1f545d3364
commit b87d7cc249
2 changed files with 7 additions and 1 deletions

View file

@ -379,8 +379,9 @@ WINDOW controls how the buffer is displayed:
(defvar-local xref--window nil)
(defun xref-goto-xref ()
"Jump to the xref at point and bury the xref buffer."
"Jump to the xref on the current line and bury the xref buffer."
(interactive)
(back-to-indentation)
(let ((loc (or (xref--location-at-point)
(error "No reference at point")))
(window xref--window))