From 5ce25ae7777734c0fbb0a64b028c125af2fd9710 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sat, 22 Nov 2008 20:40:44 +0000 Subject: [PATCH] (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. --- lisp/isearch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index a8c76ec9620..1e0b49bc14b 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -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) -- 2.39.2