]> git.eshelyaron.com Git - emacs.git/commitdiff
(inactivate-input-method): Set
authorKenichi Handa <handa@m17n.org>
Tue, 4 Sep 2007 04:58:34 +0000 (04:58 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 4 Sep 2007 04:58:34 +0000 (04:58 +0000)
input-method-function to nil before calling
inactivate-current-input-method-function.

lisp/international/mule-cmds.el

index acff5057f72a30d21d30d34c282e4e1f54f68bf0..71f8168558f147bb2e35670b6ec909d250f75862 100644 (file)
@@ -1427,12 +1427,13 @@ If INPUT-METHOD is nil, deactivate any current input method."
                      (delete current-input-method input-method-history))))
       (setq input-method-history (list current-input-method)))
     (unwind-protect
-       (funcall inactivate-current-input-method-function)
+       (progn
+         (setq input-method-function nil
+               current-input-method-title nil)
+         (funcall inactivate-current-input-method-function))
       (unwind-protect
          (run-hooks 'input-method-inactivate-hook)
-       (setq current-input-method nil
-             input-method-function nil
-             current-input-method-title nil)
+       (setq current-input-method nil)
        (force-mode-line-update)))))
 
 (defun set-input-method (input-method &optional interactive)