diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2015-07-09 14:22:53 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2015-07-09 14:22:53 +0300 |
commit | 160a8cc37bb0a0f45ffa62a658a1d75a79757eb3 (patch) | |
tree | 5b6f86a97b6f0bf7a1d6845cbe5c7993a1ad3ebf /lisp/progmodes/xref.el | |
parent | 4abd553fac14e606152000369364c37c4929d7ba (diff) | |
download | emacs-scratch/project.tar.gz |
Expect project-search-path impls not to include the whole project dirscratch/project
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r-- | lisp/progmodes/xref.el | 6 |
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." (interactive (list (xref--read-identifier "Find regexp: "))) (let* ((dirs (if current-prefix-arg (list (read-directory-name "In directory: ")) - (project-search-path (project-current)))) + (let ((proj (project-current))) + (project--prune-directories + (nconc + (project-directories proj) + (project-search-path proj)))))) (xref-find-function (lambda (_kind regexp) (cl-mapcan |