Specify t for KEEP-ALL in read-from-minibuffer.
(format "%s: " string))
nil nil nil
query-replace-from-history-variable
- nil t))))
+ nil t t))))
(if (and (zerop (length from)) lastto lastfrom)
(cons lastfrom
(query-replace-compile-replacement lastto regexp-flag))
(read-from-minibuffer
(format "%s %s with: " string (query-replace-descr from))
nil nil nil
- query-replace-to-history-variable from t))
+ query-replace-to-history-variable from t t))
regexp-flag))
(defun query-replace-read-args (string regexp-flag &optional noerror)