diff options
| author | Dmitry Gutov | 2015-07-09 14:22:53 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 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 emacs-scratch/project.zip | |
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." | |||
| 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 |