>>150
(defvar input-method-activate-hook nil
"Normal hook run just after an input method is activated.

The variable `current-input-method' keeps the input method name
just activated.")

(defvar input-method-inactivate-hook nil
"Normal hook run just after an input method is inactivated.