Fix up requires
* lisp/progmodes/project.el (project-files): Remove (require 'xref). (project--files-in-directory): Add it here instead. (project-find-regexp, project-or-external-find-regexp): And here. For 'xref--show-xrefs'.
This commit is contained in:
parent
43f66c3368
commit
181f571651
1 changed files with 3 additions and 1 deletions
|
@ -175,7 +175,6 @@ subset of the project roots and external roots.
|
||||||
|
|
||||||
The default implementation uses `find-program'. PROJECT is used
|
The default implementation uses `find-program'. PROJECT is used
|
||||||
to find the list of ignores for each directory."
|
to find the list of ignores for each directory."
|
||||||
(require 'xref)
|
|
||||||
(cl-mapcan
|
(cl-mapcan
|
||||||
(lambda (dir)
|
(lambda (dir)
|
||||||
(project--files-in-directory dir
|
(project--files-in-directory dir
|
||||||
|
@ -184,6 +183,7 @@ to find the list of ignores for each directory."
|
||||||
|
|
||||||
(defun project--files-in-directory (dir ignores &optional files)
|
(defun project--files-in-directory (dir ignores &optional files)
|
||||||
(require 'find-dired)
|
(require 'find-dired)
|
||||||
|
(require 'xref)
|
||||||
(defvar find-name-arg)
|
(defvar find-name-arg)
|
||||||
(let ((default-directory dir)
|
(let ((default-directory dir)
|
||||||
(command (format "%s %s %s -type f %s -print0"
|
(command (format "%s %s %s -type f %s -print0"
|
||||||
|
@ -436,6 +436,7 @@ e.g. entering `ch' is equivalent to `*.[ch]'. As whitespace
|
||||||
triggers completion when entering a pattern, including it
|
triggers completion when entering a pattern, including it
|
||||||
requires quoting, e.g. `\\[quoted-insert]<space>'."
|
requires quoting, e.g. `\\[quoted-insert]<space>'."
|
||||||
(interactive (list (project--read-regexp)))
|
(interactive (list (project--read-regexp)))
|
||||||
|
(require 'xref)
|
||||||
(let* ((pr (project-current t))
|
(let* ((pr (project-current t))
|
||||||
(files
|
(files
|
||||||
(if (not current-prefix-arg)
|
(if (not current-prefix-arg)
|
||||||
|
@ -467,6 +468,7 @@ requires quoting, e.g. `\\[quoted-insert]<space>'."
|
||||||
With \\[universal-argument] prefix, you can specify the file name
|
With \\[universal-argument] prefix, you can specify the file name
|
||||||
pattern to search for."
|
pattern to search for."
|
||||||
(interactive (list (project--read-regexp)))
|
(interactive (list (project--read-regexp)))
|
||||||
|
(require 'xref)
|
||||||
(let* ((pr (project-current t))
|
(let* ((pr (project-current t))
|
||||||
(files
|
(files
|
||||||
(project-files pr (append
|
(project-files pr (append
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue