diff options
Diffstat (limited to 'lisp/dired-aux.el')
| -rw-r--r-- | lisp/dired-aux.el | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index b23b04a45fa..8d6f6656a9a 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -2747,14 +2747,21 @@ with the command \\[tags-loop-continue]." | |||
| 2747 | 2747 | ||
| 2748 | ;;;###autoload | 2748 | ;;;###autoload |
| 2749 | (defun dired-do-find-regexp (regexp) | 2749 | (defun dired-do-find-regexp (regexp) |
| 2750 | "Find all matches for REGEXP in all marked files, recursively." | 2750 | "Find all matches for REGEXP in all marked files. |
| 2751 | For any marked directory, all of its files are searched recursively. | ||
| 2752 | However, files matching `grep-find-ignored-files' and subdirectories | ||
| 2753 | matching `grep-find-ignored-directories' are skipped in the marked | ||
| 2754 | directories. | ||
| 2755 | |||
| 2756 | REGEXP should use constructs supported by your local `grep' command." | ||
| 2751 | (interactive "sSearch marked files (regexp): ") | 2757 | (interactive "sSearch marked files (regexp): ") |
| 2752 | (require 'grep) | 2758 | (require 'grep) |
| 2753 | (defvar grep-find-ignored-files) | 2759 | (defvar grep-find-ignored-files) |
| 2760 | (defvar grep-find-ignored-directories) | ||
| 2754 | (let* ((files (dired-get-marked-files)) | 2761 | (let* ((files (dired-get-marked-files)) |
| 2755 | (ignores (nconc (mapcar | 2762 | (ignores (nconc (mapcar |
| 2756 | (lambda (s) (concat s "/")) | 2763 | (lambda (s) (concat s "/")) |
| 2757 | vc-directory-exclusion-list) | 2764 | grep-find-ignored-directories) |
| 2758 | grep-find-ignored-files)) | 2765 | grep-find-ignored-files)) |
| 2759 | (xrefs (cl-mapcan | 2766 | (xrefs (cl-mapcan |
| 2760 | (lambda (file) | 2767 | (lambda (file) |
| @@ -2768,7 +2775,13 @@ with the command \\[tags-loop-continue]." | |||
| 2768 | 2775 | ||
| 2769 | ;;;###autoload | 2776 | ;;;###autoload |
| 2770 | (defun dired-do-find-regexp-and-replace (from to) | 2777 | (defun dired-do-find-regexp-and-replace (from to) |
| 2771 | "Replace matches of FROM with TO, in all marked files, recursively." | 2778 | "Replace matches of FROM with TO, in all marked files. |
| 2779 | For any marked directory, matches in all of its files are replaced, | ||
| 2780 | recursively. However, files matching `grep-find-ignored-files' | ||
| 2781 | and subdirectories matching `grep-find-ignored-directories' are skipped | ||
| 2782 | in the marked directories. | ||
| 2783 | |||
| 2784 | REGEXP should use constructs supported by your local `grep' command." | ||
| 2772 | (interactive | 2785 | (interactive |
| 2773 | (let ((common | 2786 | (let ((common |
| 2774 | (query-replace-read-args | 2787 | (query-replace-read-args |