]> git.eshelyaron.com Git - emacs.git/commitdiff
(activate-input-method): Update mode line.
authorKenichi Handa <handa@m17n.org>
Thu, 30 Jul 1998 06:50:59 +0000 (06:50 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 30 Jul 1998 06:50:59 +0000 (06:50 +0000)
(inactivate-input-method): Likewise.

lisp/international/mule-cmds.el

index 9340dec8074bc4aa91bcc8e8d8f149584fc7da6b..8b9a9a13ac579a3f57bf039c6134f1873e9e8718 100644 (file)
@@ -761,7 +761,9 @@ If INPUT-METHOD is nil, deactivate any current input method."
            (error "Can't activate input method `%s'" input-method))))
       (setq current-input-method input-method)
       (setq current-input-method-title (nth 3 slot))
-      (run-hooks 'input-method-activate-hook))))
+      (unwind-protect
+         (run-hooks 'input-method-activate-hook)
+       (force-mode-line-update)))))
 
 (defun inactivate-input-method ()
   "Turn off the current input method."
@@ -777,7 +779,8 @@ If INPUT-METHOD is nil, deactivate any current input method."
       (unwind-protect
          (run-hooks 'input-method-inactivate-hook)
        (setq current-input-method nil
-             current-input-method-title nil)))))
+             current-input-method-title nil)
+       (force-mode-line-update)))))
 
 (defun set-input-method (input-method)
   "Select and activate input method INPUT-METHOD for the current buffer.