]> git.eshelyaron.com Git - emacs.git/commitdiff
(isearch-mode): Change the order of calling
authorJuri Linkov <juri@jurta.org>
Sat, 22 Nov 2008 20:40:44 +0000 (20:40 +0000)
committerJuri Linkov <juri@jurta.org>
Sat, 22 Nov 2008 20:40:44 +0000 (20:40 +0000)
`isearch-update' and running the `isearch-mode-hook' to call
`isearch-update' with Isearch parameters set in this hook.

lisp/isearch.el

index a8c76ec9620c2a7e020b815ec627285b3610f6f6..1e0b49bc14b59f95ac5c8ff32e19f5513e58bc39 100644 (file)
@@ -801,8 +801,8 @@ It is called by the function `isearch-forward' and other related functions."
   (isearch-push-state)
 
   (setq overriding-terminal-local-map isearch-mode-map)
-  (isearch-update)
   (run-hooks 'isearch-mode-hook)
+  (isearch-update)
 
   (add-hook 'mouse-leave-buffer-hook 'isearch-done)
   (add-hook 'kbd-macro-termination-hook 'isearch-done)