aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorJuri Linkov2010-05-21 01:49:53 +0300
committerJuri Linkov2010-05-21 01:49:53 +0300
commit201d895a4a7bb8bc4370d87aead05e12540cf93b (patch)
treec370c2d7be834837a56a88cafa1fefded8a9eb42 /lisp/replace.el
parent1ddb2ea0f3425c5eb53dff1a6703ebb73f41f622 (diff)
downloademacs-201d895a4a7bb8bc4370d87aead05e12540cf93b.tar.gz
emacs-201d895a4a7bb8bc4370d87aead05e12540cf93b.zip
* replace.el (replace-highlight): Fix lazy-highlighting
for `M-s w str M-% str RET'.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 487974073aa..d73692ccc20 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1980,6 +1980,9 @@ make, or the user didn't cancel the call."
1980 (isearch-regexp regexp) 1980 (isearch-regexp regexp)
1981 (search-whitespace-regexp nil) 1981 (search-whitespace-regexp nil)
1982 (isearch-case-fold-search case-fold)) 1982 (isearch-case-fold-search case-fold))
1983 ;; Set isearch-word to nil because word-replace is regexp-based,
1984 ;; so `isearch-search-fun' should not use `word-search-forward'.
1985 (if (and isearch-word isearch-regexp) (setq isearch-word nil))
1983 (isearch-lazy-highlight-new-loop range-beg range-end)))) 1986 (isearch-lazy-highlight-new-loop range-beg range-end))))
1984 1987
1985(defun replace-dehighlight () 1988(defun replace-dehighlight ()