From b2a78b43c883702d76c59b0ba3e3cd8f25bc3c3e Mon Sep 17 00:00:00 2001 From: Jeremy Maitin-Shepard Date: Thu, 14 May 2009 21:26:52 -0700 Subject: [PATCH] Revert "current_buffer_input_mode_change_hook: removed" This reverts commit 623ea135c0fc6210f40fe24671732c2ef1d0c951. input_mode_change_hook does exist, and current_buffer_input_mode_change_hook was needed for the correct operation of minibuffer_input_mode_indicator. --- modules/content-buffer-input.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/content-buffer-input.js b/modules/content-buffer-input.js index 02eec33..bdccdf1 100644 --- a/modules/content-buffer-input.js +++ b/modules/content-buffer-input.js @@ -8,6 +8,8 @@ require("content-buffer.js"); +define_current_buffer_hook("current_buffer_input_mode_change_hook", "input_mode_change_hook"); + var content_buffer_input_mode_keymaps = {}; function define_input_mode(base_name, display_name, keymap_name, doc) { @@ -170,6 +172,7 @@ function minibuffer_input_mode_indicator(window) { this.window = window; this.hook_func = method_caller(this, this.update); add_hook.call(window, "select_buffer_hook", this.hook_func); + add_hook.call(window, "current_buffer_input_mode_change_hook", this.hook_func); this.update(); } @@ -182,6 +185,7 @@ minibuffer_input_mode_indicator.prototype = { }, uninstall : function () { remove_hook.call(window, "select_buffer_hook", this.hook_func); + remove_hook.call(window, "current_buffer_input_mode_change_hook", this.hook_func); } }; -- 2.11.4.GIT