summaryrefslogtreecommitdiff
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2013-02-21 19:45:12 +0200
committerJuri Linkov <juri@jurta.org>2013-02-21 19:45:12 +0200
commit54d9de11684938dfc813a00af46c02e0e7b83f15 (patch)
treeb47f6a1f1083302e2a556eec82adb12295a8fe10 /lisp/replace.el
parent62cfd799f17a31188b3cdb9ffbe1421b4e6cba5d (diff)
downloademacs-54d9de11684938dfc813a00af46c02e0e7b83f15.tar.gz
* lisp/isearch.el (isearch-lazy-highlight-new-loop):
Set `isearch-lazy-highlight-start' and `isearch-lazy-highlight-end' to `isearch-other-end' if it is not nil. * lisp/replace.el (replace-highlight): Let-bind `isearch-other-end' to `match-beg'. * lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay): Let-bind `isearch-other-end' to `start', `isearch-forward' to t and `isearch-error' to nil. Fixes: debbugs:13402
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 7757426cf95..3eaa5ccf6bd 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2198,6 +2198,7 @@ make, or the user didn't cancel the call."
replace-regexp-lax-whitespace)
(isearch-case-fold-search case-fold-search)
(isearch-forward t)
+ (isearch-other-end match-beg)
(isearch-error nil))
(isearch-lazy-highlight-new-loop range-beg range-end))))