changeset 99812:fa8a56f094db

(isearch-mode): Change the order of calling `isearch-update' and running the `isearch-mode-hook' to call `isearch-update' with Isearch parameters set in this hook.
author Juri Linkov <juri@jurta.org>
date Sat, 22 Nov 2008 20:40:44 +0000
parents e9cd9fee6fd7
children b102ebc8ec55
files lisp/isearch.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/isearch.el	Sat Nov 22 20:40:28 2008 +0000
+++ b/lisp/isearch.el	Sat Nov 22 20:40:44 2008 +0000
@@ -801,8 +801,8 @@
   (isearch-push-state)
 
   (setq overriding-terminal-local-map isearch-mode-map)
+  (run-hooks 'isearch-mode-hook)
   (isearch-update)
-  (run-hooks 'isearch-mode-hook)
 
   (add-hook 'mouse-leave-buffer-hook 'isearch-done)
   (add-hook 'kbd-macro-termination-hook 'isearch-done)