* lisp/isearch.el (isearch-lazy-highlight-buffer-update): Run
'isearch-lazy-count-update-hook' outside of save-excursion, so point
is at the current match.
(setq isearch-lazy-count-current
(gethash opoint isearch-lazy-count-hash 0))
(when (and isearch-mode (null isearch-message-function))
- (isearch-message))
- (run-hooks 'lazy-count-update-hook))
+ (isearch-message)))
(setq isearch-lazy-highlight-timer
(run-at-time lazy-highlight-interval nil
- 'isearch-lazy-highlight-buffer-update)))))))))
+ 'isearch-lazy-highlight-buffer-update)))))
+ (when (and nomore isearch-lazy-count)
+ (run-hooks 'lazy-count-update-hook))))))
\f
;; Reading from minibuffer with lazy highlight and match count