From: Juri Linkov Date: Sun, 6 Jun 2010 09:52:13 +0000 (+0300) Subject: * lisp/isearch.el (isearch-lazy-highlight-search): Fix looping X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~117 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=27dd3c11582fc8a0446fe4d1e26d6f5754322fae;p=emacs.git * lisp/isearch.el (isearch-lazy-highlight-search): Fix looping by checking for empty match. This syncs this loop with the similar loop in `isearch-search'. (Bug#6362) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8cd1cd39739..1ab291709f1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2010-06-06 Juri Linkov + + * isearch.el (isearch-lazy-highlight-search): Fix looping + by checking for empty match. This syncs this loop with the + similar loop in `isearch-search'. (Bug#6362) + 2010-06-05 Dan Nicolaescu vc-log-incoming/vc-log-outgoing fixes for Git. diff --git a/lisp/isearch.el b/lisp/isearch.el index ea5836edc4d..89d50d66c76 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -2667,6 +2667,8 @@ Attempt to do the search exactly the way the pending Isearch would." ;; Clear RETRY unless the search predicate says ;; to skip this search hit. (if (or (not success) + (= (point) bound) ; like (bobp) (eobp) in `isearch-search'. + (= (match-beginning 0) (match-end 0)) (funcall isearch-filter-predicate (match-beginning 0) (match-end 0))) (setq retry nil)))