summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-10-22 16:00:31 +0000
committerRoland McGrath <roland@gnu.org>1994-10-22 16:00:31 +0000
commit8e54c0789a08c4805fe01e1265fd1d62483025a6 (patch)
treeac97b7648f8b64feed8659fc5ed8f6d7a812b373 /lisp/dired-aux.el
parent5b4ae7010d9fd3038d4c22ad1ba911aedd7c9627 (diff)
downloademacs-8e54c0789a08c4805fe01e1265fd1d62483025a6.tar.gz
(dired-do-tags-search, dired-do-tags-query-replace): New functions.
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el22
1 files changed, 22 insertions, 0 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index faf69620148..878e5c57108 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -1857,6 +1857,28 @@ Use \\[dired-hide-subdir] to (un)hide a particular subdirectory."
;;;###end dired-ins.el
+
+;; Functions for searching in tags style among marked files.
+
+;;;###autoload
+(defun dired-do-tags-search (regexp)
+ "Search through all marked files for a match for REGEXP.
+Stops when a match is found.
+To continue searching for next match, use command \\[tags-loop-continue]."
+ (interactive "sSearch marked files (regexp): ")
+ (tags-search regexp '(dired-get-marked-files)))
+
+;;;###autoload
+(defun dired-do-tags-query-replace (from to &optional delimited)
+ "Query-replace-regexp FROM with TO through all marked files.
+Third arg DELIMITED (prefix arg) means replace only word-delimited matches.
+If you exit (\\[keyboard-quit] or ESC), you can resume the query-replace
+with the command \\[tags-loop-continue]."
+ (interactive
+ "sQuery replace in marked files (regexp): \nsQuery replace %s by: \nP")
+ (tags-query-replace from to delimited '(dired-get-marked-files)))
+
+
(provide 'dired-aux)
;;; dired-aux.el ends here