diff options
| -rw-r--r-- | lisp/find-dired.el | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 88e5414d525..a2895133c27 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el | |||
| @@ -129,8 +129,17 @@ as the final argument." | |||
| 129 | args (concat find-dired-find-program " . " | 129 | args (concat find-dired-find-program " . " |
| 130 | (if (string= args "") | 130 | (if (string= args "") |
| 131 | "" | 131 | "" |
| 132 | (concat "\\( " args " \\) ")) | 132 | (concat |
| 133 | (car find-ls-option))) | 133 | (shell-quote-argument "(") |
| 134 | " " args " " | ||
| 135 | (shell-quote-argument ")") | ||
| 136 | " ")) | ||
| 137 | (if (equal (car find-ls-option) "-exec ls -ld {} \\;") | ||
| 138 | (concat "-exec ls -ld " | ||
| 139 | (shell-quote-argument "{}") | ||
| 140 | " " | ||
| 141 | (shell-quote-argument ";")) | ||
| 142 | (car find-ls-option)))) | ||
| 134 | ;; Start the find process. | 143 | ;; Start the find process. |
| 135 | (shell-command (concat args "&") (current-buffer)) | 144 | (shell-command (concat args "&") (current-buffer)) |
| 136 | ;; The next statement will bomb in classic dired (no optional arg allowed) | 145 | ;; The next statement will bomb in classic dired (no optional arg allowed) |
| @@ -215,7 +224,10 @@ Thus ARG can also contain additional grep options." | |||
| 215 | (find-dired dir | 224 | (find-dired dir |
| 216 | (concat "-type f -exec grep " find-grep-options " -e " | 225 | (concat "-type f -exec grep " find-grep-options " -e " |
| 217 | (shell-quote-argument regexp) | 226 | (shell-quote-argument regexp) |
| 218 | " {} \\\; "))) | 227 | " " |
| 228 | (shell-quote-argument "{}") | ||
| 229 | " " | ||
| 230 | (shell-quote-argument ";")))) | ||
| 219 | 231 | ||
| 220 | (defun find-dired-filter (proc string) | 232 | (defun find-dired-filter (proc string) |
| 221 | ;; Filter for \\[find-dired] processes. | 233 | ;; Filter for \\[find-dired] processes. |