diff options
| author | Kenichi Handa | 1998-07-30 06:50:59 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-07-30 06:50:59 +0000 |
| commit | 28885c0e1eabadd302bb2b74a4497a6a967cec08 (patch) | |
| tree | b1d7ca88760b8793e2addb66652ec486959bbcd2 | |
| parent | 6bdd75a54dbb7b150b5daee6954f47da486c456b (diff) | |
| download | emacs-28885c0e1eabadd302bb2b74a4497a6a967cec08.tar.gz emacs-28885c0e1eabadd302bb2b74a4497a6a967cec08.zip | |
(activate-input-method): Update mode line.
(inactivate-input-method): Likewise.
| -rw-r--r-- | lisp/international/mule-cmds.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 9340dec8074..8b9a9a13ac5 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -761,7 +761,9 @@ If INPUT-METHOD is nil, deactivate any current input method." | |||
| 761 | (error "Can't activate input method `%s'" input-method)))) | 761 | (error "Can't activate input method `%s'" input-method)))) |
| 762 | (setq current-input-method input-method) | 762 | (setq current-input-method input-method) |
| 763 | (setq current-input-method-title (nth 3 slot)) | 763 | (setq current-input-method-title (nth 3 slot)) |
| 764 | (run-hooks 'input-method-activate-hook)))) | 764 | (unwind-protect |
| 765 | (run-hooks 'input-method-activate-hook) | ||
| 766 | (force-mode-line-update))))) | ||
| 765 | 767 | ||
| 766 | (defun inactivate-input-method () | 768 | (defun inactivate-input-method () |
| 767 | "Turn off the current input method." | 769 | "Turn off the current input method." |
| @@ -777,7 +779,8 @@ If INPUT-METHOD is nil, deactivate any current input method." | |||
| 777 | (unwind-protect | 779 | (unwind-protect |
| 778 | (run-hooks 'input-method-inactivate-hook) | 780 | (run-hooks 'input-method-inactivate-hook) |
| 779 | (setq current-input-method nil | 781 | (setq current-input-method nil |
| 780 | current-input-method-title nil))))) | 782 | current-input-method-title nil) |
| 783 | (force-mode-line-update))))) | ||
| 781 | 784 | ||
| 782 | (defun set-input-method (input-method) | 785 | (defun set-input-method (input-method) |
| 783 | "Select and activate input method INPUT-METHOD for the current buffer. | 786 | "Select and activate input method INPUT-METHOD for the current buffer. |