summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/check-declare.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el
index 9f81cebaca8..1b3d4dc2f6d 100644
--- a/lisp/emacs-lisp/check-declare.el
+++ b/lisp/emacs-lisp/check-declare.el
@@ -300,9 +300,10 @@ described in the documentation of `declare-function'."
errlist files)
(message "%s" m)
(message "%s" m2)
- (setq files (process-lines "find" root "-name" "*.el"
- "-exec" "grep" "-l"
- "^[ ]*(declare-function" "{}" ";"))
+ (setq files (process-lines find-program root
+ "-name" "*.el"
+ "-exec" grep-program
+ "-l" "^[ \t]*(declare-function" "{}" ";"))
(message "%s%d found" m2 (length files))
(when files
(setq errlist (apply 'check-declare-files files))