[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 7197fbe 1/2: Mention that some dired commands work
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 7197fbe 1/2: Mention that some dired commands work on the current file, too |
Date: |
Fri, 2 Aug 2019 08:47:13 -0400 (EDT) |
branch: master
commit 7197fbebfc9660d2f21a0907289388019a169031
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Mention that some dired commands work on the current file, too
* lisp/dired-aux.el (dired-do-search): Mention that it works on
file under point (bug#20194).
(dired-do-find-regexp-and-replace): Ditto.
(dired-do-find-regexp): Ditto.
---
lisp/dired-aux.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 20656a8..6c06d84 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2872,7 +2872,10 @@ is part of a file name (i.e., has the text property
`dired-filename')."
;;;###autoload
(defun dired-do-search (regexp)
"Search through all marked files for a match for REGEXP.
+If no files are marked, search through the file under point.
+
Stops when a match is found.
+
To continue searching for next match, use command \\[fileloop-continue]."
(interactive "sSearch marked files (regexp): ")
(fileloop-initialize-search
@@ -2909,6 +2912,9 @@ with the command \\[tags-loop-continue]."
;;;###autoload
(defun dired-do-find-regexp (regexp)
"Find all matches for REGEXP in all marked files.
+
+If no files are marked, use the file under point.
+
For any marked directory, all of its files are searched recursively.
However, files matching `grep-find-ignored-files' and subdirectories
matching `grep-find-ignored-directories' are skipped in the marked
@@ -2941,6 +2947,9 @@ REGEXP should use constructs supported by your local
`grep' command."
;;;###autoload
(defun dired-do-find-regexp-and-replace (from to)
"Replace matches of FROM with TO, in all marked files.
+
+If no files are marked, use the file under point.
+
For any marked directory, matches in all of its files are replaced,
recursively. However, files matching `grep-find-ignored-files'
and subdirectories matching `grep-find-ignored-directories' are skipped