aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorJohan Bockgård2010-08-08 16:55:52 -0400
committerChong Yidong2010-08-08 16:55:52 -0400
commite54a1075033073f835596ab666eeed099028beb8 (patch)
tree34f6ce1c647bf19da012fa4effb309cf8ee34fe4 /lisp/replace.el
parentf21a9669a44e1358e1f3164e4e1edd4e7000714e (diff)
downloademacs-e54a1075033073f835596ab666eeed099028beb8.tar.gz
emacs-e54a1075033073f835596ab666eeed099028beb8.zip
Fix query-replace-regexp incomplete highlighting (Bug#6808).
* replace.el (replace-highlight): Bind isearch-forward and isearch-error, ensuring that highlighting is updated if the user switches the search direction (Bug#6808). * isearch.el (isearch-lazy-highlight-forward): New var. (isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search): (isearch-lazy-highlight-update): Use it.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 57b29442605..12263cf5aa6 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1893,7 +1893,9 @@ make, or the user didn't cancel the call."
1893 (let ((isearch-string string) 1893 (let ((isearch-string string)
1894 (isearch-regexp regexp) 1894 (isearch-regexp regexp)
1895 (search-whitespace-regexp nil) 1895 (search-whitespace-regexp nil)
1896 (isearch-case-fold-search case-fold)) 1896 (isearch-case-fold-search case-fold)
1897 (isearch-forward t)
1898 (isearch-error nil))
1897 (isearch-lazy-highlight-new-loop range-beg range-end)))) 1899 (isearch-lazy-highlight-new-loop range-beg range-end))))
1898 1900
1899(defun replace-dehighlight () 1901(defun replace-dehighlight ()