]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-do-tags-search, dired-do-tags-query-replace): New functions.
authorRoland McGrath <roland@gnu.org>
Sat, 22 Oct 1994 16:00:31 +0000 (16:00 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 22 Oct 1994 16:00:31 +0000 (16:00 +0000)
lisp/dired-aux.el

index faf69620148852ad6cea2d37d9b5c1136ff14ed8..878e5c571081c5fe20b21f86d5757f4dd6d5363d 100644 (file)
@@ -1857,6 +1857,28 @@ Use \\[dired-hide-subdir] to (un)hide a particular subdirectory."
 
 ;;;###end dired-ins.el
 
+\f
+;; 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)))
+\f
+
 (provide 'dired-aux)
 
 ;;; dired-aux.el ends here