Function: query-replace-read-args
query-replace-read-args is a byte-compiled function defined in
replace.el.gz.
Signature
(query-replace-read-args PROMPT REGEXP-FLAG &optional NOERROR)
Source Code
;; Defined in /usr/src/emacs/lisp/replace.el.gz
(defun query-replace-read-args (prompt regexp-flag &optional noerror)
(unless noerror
(barf-if-buffer-read-only))
(save-mark-and-excursion
(let* ((from (query-replace-read-from prompt regexp-flag))
(to (if (consp from) (prog1 (cdr from) (setq from (car from)))
(query-replace-read-to from prompt regexp-flag))))
(list from to
(or (and current-prefix-arg (not (eq current-prefix-arg '-)))
(and (plist-member (text-properties-at 0 from) 'isearch-regexp-function)
(get-text-property 0 'isearch-regexp-function from)))
(and current-prefix-arg (eq current-prefix-arg '-))))))