Commit d3e22a12 authored by Mark Oteiza's avatar Mark Oteiza
Browse files

Prescribe history for read-regexp in query-replace

In the fix for bug#24580, the history argument for read-regexp was
removed erroneously; read-regexp's history argument defaults to
regexp-history, not minibuffer-history.
* lisp/replace.el (query-replace-read-from): Tell read-regexp to use
minibuffer-history.  Fixes bug#24873.
parent 73d47d22
......@@ -198,7 +198,7 @@ wants to replace FROM with TO."
(setq-local text-property-default-nonsticky
(cons '(separator . t) text-property-default-nonsticky)))
(if regexp-flag
(read-regexp prompt)
(read-regexp prompt nil 'minibuffer-history)
prompt nil nil nil nil
(car (if regexp-flag regexp-search-ring search-ring)) t)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment