aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2019-05-26 00:18:12 +0300
committerDmitry Gutov2019-05-26 00:18:51 +0300
commit5ce082d636a6e321994cc807d3dea9374e17d34b (patch)
tree09a853ee1bc8ab8c2d45a9a3fba4728d9ba1fe81
parentd0df779224f56eef777f6e75063e49bfb434f9e0 (diff)
downloademacs-5ce082d636a6e321994cc807d3dea9374e17d34b.tar.gz
emacs-5ce082d636a6e321994cc807d3dea9374e17d34b.zip
; xref--create-fetcher: Add some further clarification
-rw-r--r--lisp/progmodes/xref.el6
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."
929 (method (intern (format "xref-backend-%s" kind)))) 929 (method (intern (format "xref-backend-%s" kind))))
930 (lambda () 930 (lambda ()
931 (save-excursion 931 (save-excursion
932 ;; Xref methods are generally allowed to depend on the text
933 ;; around point, not just on their explicit arguments.
934 ;;
935 ;; There is only so much we can do, however, to recreate that
936 ;; context, given that the user is free to change the buffer
937 ;; contents freely in the meantime.
932 (when (buffer-live-p orig-buffer) 938 (when (buffer-live-p orig-buffer)
933 (set-buffer orig-buffer) 939 (set-buffer orig-buffer)
934 (ignore-errors (goto-char orig-position))) 940 (ignore-errors (goto-char orig-position)))