changeset 88085:f4834ccd5bce

(check-declare-directory): Use `find-program' and `grep-program' instead of hardcoded program names.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 30 Jan 2008 21:44:36 +0000
parents 60aaa6c4ca3c
children 7ce84052e493
files lisp/emacs-lisp/check-declare.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/check-declare.el	Wed Jan 30 21:43:55 2008 +0000
+++ b/lisp/emacs-lisp/check-declare.el	Wed Jan 30 21:44:36 2008 +0000
@@ -300,9 +300,10 @@
         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))