]> git.eshelyaron.com Git - emacs.git/commitdiff
(authors): Use `find-program' and `grep-program'
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 30 Jan 2008 21:43:55 +0000 (21:43 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 30 Jan 2008 21:43:55 +0000 (21:43 +0000)
instead of hardcoded program names.

lisp/emacs-lisp/authors.el

index 90d3ac869e91334db53d438126bed50f555b1bc1..d27e08f7334c99890ce575da35c565349f28912f 100644 (file)
@@ -587,7 +587,7 @@ Result is a buffer *Authors* containing authorship information, and a
 buffer *Authors Errors* containing references to unknown files."
   (interactive "DEmacs source directory: ")
   (setq root (expand-file-name root))
-  (let ((logs (process-lines "find" root "-name" "ChangeLog*"))
+  (let ((logs (process-lines find-program root "-name" "ChangeLog*"))
        (table (make-hash-table :test 'equal))
        (buffer-name "*Authors*")
        authors-checked-files-alist
@@ -599,7 +599,7 @@ buffer *Authors Errors* containing references to unknown files."
       (when (string-match "ChangeLog\\(.[0-9]+\\)?$" log)
        (message "Scanning %s..." log)
        (authors-scan-change-log log table)))
-    (let ((els (process-lines "find" root "-name" "*.el")))
+    (let ((els (process-lines find-program root "-name" "*.el")))
       (dolist (file els)
        (message "Scanning %s..." file)
        (authors-scan-el file table)))