aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2011-11-19 21:59:37 +0200
committerJuri Linkov2011-11-19 21:59:37 +0200
commitdf754f6672e953b309538ad1ded72d2f3300f215 (patch)
treed3ebd9079ae557c65d35d175ae62321477896dfb
parent0e23d96a60e4283caf112c0d06bb49a8a86ab2bf (diff)
downloademacs-df754f6672e953b309538ad1ded72d2f3300f215.tar.gz
emacs-df754f6672e953b309538ad1ded72d2f3300f215.zip
* lisp/isearch.el (isearch-edit-string): Let-bind `history-add-new-input'
to nil instead of binding `search-ring' and `regexp-search-ring'. Fixes: debbugs:9185
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/isearch.el9
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 86a6c1c3754..46245ba6090 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-11-19 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-edit-string): Let-bind `history-add-new-input'
4 to nil instead of binding `search-ring' and `regexp-search-ring'.
5 (Bug#9185)
6
12011-11-19 Eli Zaretskii <eliz@gnu.org> 72011-11-19 Eli Zaretskii <eliz@gnu.org>
2 8
3 * simple.el (line-move): Force movement by logical lines for any 9 * simple.el (line-move): Force movement by logical lines for any
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 977de6ac4b0..07ae56934b5 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1162,11 +1162,10 @@ The following additional command keys are active while editing.
1162 1162
1163 (unwind-protect 1163 (unwind-protect
1164 (let* ((message-log-max nil) 1164 (let* ((message-log-max nil)
1165 ;; Protect global value of search rings from updating 1165 ;; Don't add a new search string to the search ring here
1166 ;; by `read-from-minibuffer'. It should be updated only 1166 ;; in `read-from-minibuffer'. It should be added only
1167 ;; by `isearch-update-ring' in `isearch-done', not here. 1167 ;; by `isearch-update-ring' called from `isearch-done'.
1168 (search-ring search-ring) 1168 (history-add-new-input nil)
1169 (regexp-search-ring regexp-search-ring)
1170 ;; Binding minibuffer-history-symbol to nil is a work-around 1169 ;; Binding minibuffer-history-symbol to nil is a work-around
1171 ;; for some incompatibility with gmhist. 1170 ;; for some incompatibility with gmhist.
1172 (minibuffer-history-symbol)) 1171 (minibuffer-history-symbol))