Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
28885c0e
Commit
28885c0e
authored
Jul 30, 1998
by
Kenichi Handa
Browse files
(activate-input-method): Update mode line.
(inactivate-input-method): Likewise.
parent
6bdd75a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lisp/international/mule-cmds.el
lisp/international/mule-cmds.el
+5
-2
No files found.
lisp/international/mule-cmds.el
View file @
28885c0e
...
@@ -761,7 +761,9 @@ If INPUT-METHOD is nil, deactivate any current input method."
...
@@ -761,7 +761,9 @@ If INPUT-METHOD is nil, deactivate any current input method."
(error "
Can
't
activate
input
method
`
%s
'
" input-method))))
(error "
Can
't
activate
input
method
`
%s
'
" input-method))))
(setq current-input-method input-method)
(setq current-input-method input-method)
(setq current-input-method-title (nth 3 slot))
(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 ()
(defun inactivate-input-method ()
"
Turn
off
the
current
input
method.
"
"
Turn
off
the
current
input
method.
"
...
@@ -777,7 +779,8 @@ If INPUT-METHOD is nil, deactivate any current input method."
...
@@ -777,7 +779,8 @@ If INPUT-METHOD is nil, deactivate any current input method."
(unwind-protect
(unwind-protect
(run-hooks 'input-method-inactivate-hook)
(run-hooks 'input-method-inactivate-hook)
(setq current-input-method nil
(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)
(defun set-input-method (input-method)
"
Select
and
activate
input
method
INPUT-METHOD
for
the
current
buffer.
"
Select
and
activate
input
method
INPUT-METHOD
for
the
current
buffer.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment