Mercurial > emacs
diff lisp/isearch.el @ 107213:4e1df9366cdd
Merge from trunk
author | Jan D. <jan.h.d@swipnet.se> |
---|---|
date | Thu, 18 Feb 2010 14:20:39 +0100 |
parents | 6e6072f0c0a2 |
children | e8c35d7a4eac |
line wrap: on
line diff
--- a/lisp/isearch.el Sun Feb 14 18:31:45 2010 +0100 +++ b/lisp/isearch.el Thu Feb 18 14:20:39 2010 +0100 @@ -156,6 +156,9 @@ (defvar isearch-mode-hook nil "Function(s) to call after starting up an incremental search.") +(defvar isearch-update-post-hook nil + "Function(s) to call after isearch has found matches in the buffer.") + (defvar isearch-mode-end-hook nil "Function(s) to call after terminating an incremental search. When these functions are called, `isearch-mode-end-hook-quit' @@ -868,7 +871,8 @@ (isearch-lazy-highlight-new-loop)) ;; We must prevent the point moving to the end of composition when a ;; part of the composition has just been searched. - (setq disable-point-adjustment t)) + (setq disable-point-adjustment t) + (run-hooks 'isearch-update-post-hook)) (defun isearch-done (&optional nopush edit) "Exit Isearch mode.