aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2010-05-21 01:49:53 +0300
committerJuri Linkov2010-05-21 01:49:53 +0300
commit201d895a4a7bb8bc4370d87aead05e12540cf93b (patch)
treec370c2d7be834837a56a88cafa1fefded8a9eb42
parent1ddb2ea0f3425c5eb53dff1a6703ebb73f41f622 (diff)
downloademacs-201d895a4a7bb8bc4370d87aead05e12540cf93b.tar.gz
emacs-201d895a4a7bb8bc4370d87aead05e12540cf93b.zip
* replace.el (replace-highlight): Fix lazy-highlighting
for `M-s w str M-% str RET'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/replace.el3
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4735ee6000b..1f2d78e92c8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-05-20 Juri Linkov <juri@jurta.org>
2
3 * replace.el (replace-highlight): Fix lazy-highlighting
4 for `M-s w str M-% str RET'.
5
12009-12-15 Masatake YAMATO <yamato@redhat.com> 62009-12-15 Masatake YAMATO <yamato@redhat.com>
2 7
3 * isearch.el (isearch-yank-word-or-char): Pull next subword 8 * isearch.el (isearch-yank-word-or-char): Pull next subword
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 ()