]> code.delx.au - gnu-emacs/blobdiff - lisp/dired-aux.el
(safe-functions): Add defvar.
[gnu-emacs] / lisp / dired-aux.el
index 9bcb04ef27bd9d1a648309e6ef5ddc6fecaf5cef..0d3f6fe125b3df38cfa77f8d5de1c8aae915abd1 100644 (file)
@@ -2208,7 +2208,10 @@ Third arg DELIMITED (prefix arg) means replace only word-delimited matches.
 If you exit (\\[keyboard-quit], RET or q), you can resume the query replace
 with the command \\[tags-loop-continue]."
   (interactive
-   "sQuery replace in marked files (regexp): \nsQuery replace %s by: \nP")
+   (let ((common
+         (query-replace-read-args
+          "Query replace regexp in marked files" t t)))
+     (list (nth 0 common) (nth 1 common) (nth 2 common))))
   (dolist (file (dired-get-marked-files nil nil 'dired-nondirectory-p))
     (let ((buffer (get-file-buffer file)))
       (if (and buffer (with-current-buffer buffer