aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-08-09 21:38:24 +0000
committerJuri Linkov2005-08-09 21:38:24 +0000
commit0751a7049a4a913cda0a3d0b005ff362578a2001 (patch)
tree5a2d2b0d13faf8d0207be98927f91e4fd79aa6a8
parent7462142dc4355d8334d387e149257ddd03b62121 (diff)
downloademacs-0751a7049a4a913cda0a3d0b005ff362578a2001.tar.gz
emacs-0751a7049a4a913cda0a3d0b005ff362578a2001.zip
(dired-do-query-replace-regexp): Use `query-replace-read-args'.
-rw-r--r--lisp/dired-aux.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 9bcb04ef27b..0d3f6fe125b 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2208,7 +2208,10 @@ Third arg DELIMITED (prefix arg) means replace only word-delimited matches.
2208If you exit (\\[keyboard-quit], RET or q), you can resume the query replace 2208If you exit (\\[keyboard-quit], RET or q), you can resume the query replace
2209with the command \\[tags-loop-continue]." 2209with the command \\[tags-loop-continue]."
2210 (interactive 2210 (interactive
2211 "sQuery replace in marked files (regexp): \nsQuery replace %s by: \nP") 2211 (let ((common
2212 (query-replace-read-args
2213 "Query replace regexp in marked files" t t)))
2214 (list (nth 0 common) (nth 1 common) (nth 2 common))))
2212 (dolist (file (dired-get-marked-files nil nil 'dired-nondirectory-p)) 2215 (dolist (file (dired-get-marked-files nil nil 'dired-nondirectory-p))
2213 (let ((buffer (get-file-buffer file))) 2216 (let ((buffer (get-file-buffer file)))
2214 (if (and buffer (with-current-buffer buffer 2217 (if (and buffer (with-current-buffer buffer