From: Dmitry Gutov Date: Sun, 18 Jan 2015 08:15:41 +0000 (+0200) Subject: Perform xref jump even inside indentation or at eol X-Git-Tag: emacs-25.0.90~2595^2~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b87d7cc2493335c68f3376a0455a7b00224ca1f6;p=emacs.git 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. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab4428382fe..d84e83158c2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-01-18 Dmitry Gutov + + * progmodes/xref.el (xref-goto-xref): Perform the jump even inside + indentation or at eol. + 2015-01-18 Stefan Monnier * emacs-lisp/eieio-core.el: Add `subclass' specializer for cl-generic. diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 7f77d218a48..59da5793295 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -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))