aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index f2f02a41367..2ac76e8a263 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -666,7 +666,11 @@ to search in."
666 (interactive (list (xref--read-identifier "Find regexp: "))) 666 (interactive (list (xref--read-identifier "Find regexp: ")))
667 (let* ((dirs (if current-prefix-arg 667 (let* ((dirs (if current-prefix-arg
668 (list (read-directory-name "In directory: ")) 668 (list (read-directory-name "In directory: "))
669 (project-search-path (project-current)))) 669 (let ((proj (project-current)))
670 (project--prune-directories
671 (nconc
672 (project-directories proj)
673 (project-search-path proj))))))
670 (xref-find-function 674 (xref-find-function
671 (lambda (_kind regexp) 675 (lambda (_kind regexp)
672 (cl-mapcan 676 (cl-mapcan