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.
This commit is contained in:
parent
73d47d2219
commit
d3e22a1210
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
(read-from-minibuffer
|
||||
prompt nil nil nil nil
|
||||
(car (if regexp-flag regexp-search-ring search-ring)) t)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue