diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab4428382fe..d84e83158c2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-01-18 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * progmodes/xref.el (xref-goto-xref): Perform the jump even inside | ||
| 4 | indentation or at eol. | ||
| 5 | |||
| 1 | 2015-01-18 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2015-01-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * emacs-lisp/eieio-core.el: Add `subclass' specializer for cl-generic. | 8 | * 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: | |||
| 379 | (defvar-local xref--window nil) | 379 | (defvar-local xref--window nil) |
| 380 | 380 | ||
| 381 | (defun xref-goto-xref () | 381 | (defun xref-goto-xref () |
| 382 | "Jump to the xref at point and bury the xref buffer." | 382 | "Jump to the xref on the current line and bury the xref buffer." |
| 383 | (interactive) | 383 | (interactive) |
| 384 | (back-to-indentation) | ||
| 384 | (let ((loc (or (xref--location-at-point) | 385 | (let ((loc (or (xref--location-at-point) |
| 385 | (error "No reference at point"))) | 386 | (error "No reference at point"))) |
| 386 | (window xref--window)) | 387 | (window xref--window)) |