diff options
| author | Paul Eggert | 2016-05-05 23:11:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-05 23:11:11 -0700 |
| commit | 89ce83b20249dfb4e45f09dfdddf4c4b66d82968 (patch) | |
| tree | 3d75245a5514df2ad7b17ae6d56727b9629846a9 /lisp/dired-aux.el | |
| parent | d546ed13b04521308ef7ec8e7e5b68e03f1bbb38 (diff) | |
| parent | 50650cb6887d99b01eeb1e686fc1f695c2a0c64a (diff) | |
| download | emacs-89ce83b20249dfb4e45f09dfdddf4c4b66d82968.tar.gz emacs-89ce83b20249dfb4e45f09dfdddf4c4b66d82968.zip | |
Merge from origin/emacs-25
50650cb Doc fixes for fclist and grep
5e814e0 Minor doc fixes for quoting
3347a73 `nreverse' the marker pairs list
1a4127d Use save-excursion in xref-location-marker more
ab3ba91 shell-quote-argument DIR when appropriate
922c7a3 Rework xref-query-replace-in-results
3fe3510 * lisp/replace.el (query-replace-read-from): Use minibuffer-w...
0932b94 Fix todo-mode bug involving archived items (bug#23447)
e68ad1f ; * etc/NEWS: Tiny edit. (Bug#23432)
adc80b7 ; * test/automated/xref-tests.el: Add copyright and license.
4d8fd9c Handle "empty line" regexp in xref searches
f559b37 Add tests for xref-collect-matches
6428aa0 Use grep-find-ignored-directories instead of vc-directory-exc...
6f82d8e Clear buffer-undo-list when showing xrefs
c68a091 Note the quote translation in `message' in section "incompati...
52f86a7 * etc/NEWS: Mention (message "%s" (format ...)).
93703c5 (Common Keywords): Correct what missing :group means
79e5800 Improve documentation of Dired's 'A' and 'Q' commands
2ea2a2f Doc fixes for quoting
8544b98 posnp doc clarification
805204f Mention what a missing :group does
ec554d7 Fix documentation of dired-aux search/replace commands
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 |