[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d3e22a1: Prescribe history for read-regexp in query
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master d3e22a1: Prescribe history for read-regexp in query-replace |
Date: |
Tue, 8 Nov 2016 03:16:17 +0000 (UTC) |
branch: master
commit d3e22a1210e2a054f6f6aed44a3b98f6bbcd4546
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>
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.
---
lisp/replace.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/replace.el b/lisp/replace.el
index 4fc48d4..60948ef 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -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)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master d3e22a1: Prescribe history for read-regexp in query-replace,
Mark Oteiza <=