Tweak check-declare-directory performance
* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use ‘find ... -exec ... +’ for speed.
This commit is contained in:
parent
f791efc057
commit
faa8f38502
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ Returns non-nil if any false statements are found."
|
|||
(setq files (process-lines find-program root
|
||||
"-name" "*.el"
|
||||
"-exec" grep-program
|
||||
"-l" "^[ \t]*(declare-function" "{}" ";"))
|
||||
"-l" "^[ \t]*(declare-function" "{}" "+"))
|
||||
(message "%s%d found" m2 (length files))
|
||||
(when files
|
||||
(setq errlist (apply 'check-declare-files files))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue