diff options
| author | Stefan Monnier | 2004-05-28 21:07:47 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-05-28 21:07:47 +0000 |
| commit | f833e227cbcf652b20b52c15be9e7bf04af54f97 (patch) | |
| tree | 81fd12a289ac684901927224afcd45564916935e | |
| parent | a5809dbd7f8b54c78219bf96feef190d24765925 (diff) | |
| download | emacs-f833e227cbcf652b20b52c15be9e7bf04af54f97.tar.gz emacs-f833e227cbcf652b20b52c15be9e7bf04af54f97.zip | |
(grep-tree): Rework previous fix.
| -rw-r--r-- | lisp/progmodes/grep.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index c5e322a657a..aa81f8aa770 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -533,8 +533,7 @@ those sub directories of DIR." | |||
| 533 | (files | 533 | (files |
| 534 | (read-string (concat "Search for \"" regexp "\" in files (default " grep-tree-last-files "): "))) | 534 | (read-string (concat "Search for \"" regexp "\" in files (default " grep-tree-last-files "): "))) |
| 535 | (dir | 535 | (dir |
| 536 | (file-name-as-directory | 536 | (read-directory-name "Base directory: " nil default-directory t))) |
| 537 | (read-directory-name "Base directory: " nil default-directory t)))) | ||
| 538 | (list regexp files dir))) | 537 | (list regexp files dir))) |
| 539 | (unless grep-tree-command | 538 | (unless grep-tree-command |
| 540 | (grep-compute-defaults)) | 539 | (grep-compute-defaults)) |
| @@ -556,7 +555,7 @@ those sub directories of DIR." | |||
| 556 | nil) ;; we change default-directory to dir | 555 | nil) ;; we change default-directory to dir |
| 557 | (and grep-tree-ignore-CVS-directories "-path '*/CVS' -prune -o ") | 556 | (and grep-tree-ignore-CVS-directories "-path '*/CVS' -prune -o ") |
| 558 | grep-tree-ignore-case)) | 557 | grep-tree-ignore-case)) |
| 559 | (default-directory dir) | 558 | (default-directory (file-name-as-directory (expand-file-name dir))) |
| 560 | (null-device nil)) ; see grep | 559 | (null-device nil)) ; see grep |
| 561 | (grep command-args regexp))) | 560 | (grep command-args regexp))) |
| 562 | 561 | ||