diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2019-05-26 00:18:12 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2019-05-26 00:18:51 +0300 |
commit | 5ce082d636a6e321994cc807d3dea9374e17d34b (patch) | |
tree | 09a853ee1bc8ab8c2d45a9a3fba4728d9ba1fe81 /lisp/progmodes | |
parent | d0df779224f56eef777f6e75063e49bfb434f9e0 (diff) | |
download | emacs-5ce082d636a6e321994cc807d3dea9374e17d34b.tar.gz emacs-5ce082d636a6e321994cc807d3dea9374e17d34b.tar.bz2 emacs-5ce082d636a6e321994cc807d3dea9374e17d34b.zip |
; xref--create-fetcher: Add some further clarification
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/xref.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 090618fa02f..b2f841b4640 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -929,6 +929,12 @@ the xref backend method indicated by KIND and passes ARG to it." (method (intern (format "xref-backend-%s" kind)))) (lambda () (save-excursion + ;; Xref methods are generally allowed to depend on the text + ;; around point, not just on their explicit arguments. + ;; + ;; There is only so much we can do, however, to recreate that + ;; context, given that the user is free to change the buffer + ;; contents freely in the meantime. (when (buffer-live-p orig-buffer) (set-buffer orig-buffer) (ignore-errors (goto-char orig-position))) |