Make 'check-declare-directory' more portable
* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use 'directory-files-recursively' instead of running Find and Grep in a subprocess. (Bug#55386)
This commit is contained in:
parent
aa98a78238
commit
3d2cd8b779
1 changed files with 1 additions and 5 deletions
|
|
@ -319,11 +319,7 @@ Returns non-nil if any false statements are found."
|
||||||
(setq root (directory-file-name (file-relative-name root)))
|
(setq root (directory-file-name (file-relative-name root)))
|
||||||
(or (file-directory-p root)
|
(or (file-directory-p root)
|
||||||
(error "Directory `%s' not found" root))
|
(error "Directory `%s' not found" root))
|
||||||
(let ((files (process-lines-ignore-status
|
(let ((files (directory-files-recursively root "\\.el\\'")))
|
||||||
find-program root
|
|
||||||
"-name" "*.el"
|
|
||||||
"-exec" grep-program
|
|
||||||
"-l" "^[ \t]*(declare-function" "{}" "+")))
|
|
||||||
(when files
|
(when files
|
||||||
(apply #'check-declare-files files))))
|
(apply #'check-declare-files files))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue