diff options
author | Juanma Barranquero <[email protected]> | 2008-01-30 21:44:36 +0000 |
---|---|---|
committer | Juanma Barranquero <[email protected]> | 2008-01-30 21:44:36 +0000 |
commit | 2f18aa21f57973dbd6bb21cc3fda962290e72a5e (patch) | |
tree | d6615a15cf724e0e7c0f3a0a884fa6622a0c7fb6 | |
parent | c7efbb12d959fc9af98a6e255aaf20cfce8884a8 (diff) |
(check-declare-directory): Use `find-program' and
`grep-program' instead of hardcoded program names.
-rw-r--r-- | lisp/emacs-lisp/check-declare.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el index 9f81cebaca..1b3d4dc2f6 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)) |