diff options
| author | Juri Linkov | 2010-05-21 01:49:53 +0300 |
|---|---|---|
| committer | Juri Linkov | 2010-05-21 01:49:53 +0300 |
| commit | 201d895a4a7bb8bc4370d87aead05e12540cf93b (patch) | |
| tree | c370c2d7be834837a56a88cafa1fefded8a9eb42 | |
| parent | 1ddb2ea0f3425c5eb53dff1a6703ebb73f41f622 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/replace.el | 3 |
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 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2009-12-15 Masatake YAMATO <yamato@redhat.com> | 6 | 2009-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 () |