Commit 300e8fa5 authored by Juri Linkov's avatar Juri Linkov
Browse files

* lisp/replace.el (replace-highlight): Set isearch-word to nil unconditionally.

Fixes: debbugs:10887
parent 179f6911
2012-03-11 Juri Linkov <juri@jurta.org>
* replace.el (replace-highlight): Set isearch-word to nil
unconditionally. (Bug#10887)
2012-03-10 Eli Zaretskii <eliz@gnu.org>
* net/mairix.el (mairix-replace-invalid-chars): Rename from
......
......@@ -2116,13 +2116,13 @@ make, or the user didn't cancel the call."
(if query-replace-lazy-highlight
(let ((isearch-string string)
(isearch-regexp regexp)
;; Set isearch-word to nil because word-replace is regexp-based,
;; so `isearch-search-fun' should not use `word-search-forward'.
(isearch-word nil)
(search-whitespace-regexp nil)
(isearch-case-fold-search case-fold)
(isearch-forward t)
(isearch-error nil))
;; Set isearch-word to nil because word-replace is regexp-based,
;; so `isearch-search-fun' should not use `word-search-forward'.
(if (and isearch-word isearch-regexp) (setq isearch-word nil))
(isearch-lazy-highlight-new-loop range-beg range-end))))
(defun replace-dehighlight ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment