aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Breton1999-10-16 03:20:11 +0000
committerPeter Breton1999-10-16 03:20:11 +0000
commitd9823c3c1835b21e9550d06cc3db37f105a0cd45 (patch)
treec719203e1388a3414629318be4dcb51cc63ab12b
parent552a813228d56a74d2f7b649f8fbc3defb290f8e (diff)
downloademacs-d9823c3c1835b21e9550d06cc3db37f105a0cd45.tar.gz
emacs-d9823c3c1835b21e9550d06cc3db37f105a0cd45.zip
(find-dired-find-program): Added this variable.
(find-dired): Use find-dired-find-program instead of "find".
-rw-r--r--lisp/find-dired.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index 824cdbf013a..a6f560af25e 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -33,6 +33,12 @@
33 :group 'dired 33 :group 'dired
34 :prefix "find-") 34 :prefix "find-")
35 35
36(defcustom find-dired-find-program "find"
37 "Program used to find files."
38 :group 'dired
39 :type 'file
40 )
41
36;; find's -ls corresponds to these switches. 42;; find's -ls corresponds to these switches.
37;; Note -b, at least GNU find quotes spaces etc. in filenames 43;; Note -b, at least GNU find quotes spaces etc. in filenames
38;;;###autoload 44;;;###autoload
@@ -92,7 +98,7 @@ as the final argument."
92 (erase-buffer) 98 (erase-buffer)
93 (setq default-directory dir 99 (setq default-directory dir
94 find-args args ; save for next interactive call 100 find-args args ; save for next interactive call
95 args (concat "find . " 101 args (concat find-dired-find-program " . "
96 (if (string= args "") 102 (if (string= args "")
97 "" 103 ""
98 (concat "\\( " args " \\) ")) 104 (concat "\\( " args " \\) "))
@@ -120,7 +126,7 @@ as the final argument."
120 ;; ``wildcard'' line. 126 ;; ``wildcard'' line.
121 (insert " " args "\n") 127 (insert " " args "\n")
122 ;; Start the find process. 128 ;; Start the find process.
123 (let ((proc (start-process-shell-command "find" (current-buffer) args))) 129 (let ((proc (start-process-shell-command find-dired-find-program (current-buffer) args)))
124 (set-process-filter proc (function find-dired-filter)) 130 (set-process-filter proc (function find-dired-filter))
125 (set-process-sentinel proc (function find-dired-sentinel)) 131 (set-process-sentinel proc (function find-dired-sentinel))
126 ;; Initialize the process marker; it is used by the filter. 132 ;; Initialize the process marker; it is used by the filter.