Commit f8ec20be authored by Richard M. Stallman's avatar Richard M. Stallman

(toggle-input-method): Doc fix.

parent 92e98d63
...@@ -1095,18 +1095,20 @@ To deactivate it programmatically, use \\[inactivate-input-method]." ...@@ -1095,18 +1095,20 @@ To deactivate it programmatically, use \\[inactivate-input-method]."
(setq default-input-method input-method)) (setq default-input-method input-method))
(defun toggle-input-method (&optional arg) (defun toggle-input-method (&optional arg)
"Turn on or off a multilingual text input method for the current buffer. "Enable or disable multilingual text input method for the current buffer.
Only one input method can be enabled at any time in a given buffer.
With no prefix argument, if an input method is currently activated,
turn it off. Otherwise, activate an input method -- the one most The normal action is to enable an input method if none was
recently used, or the one specified in `default-input-method', or enabled, and disable the current one otherwise. Which input method
the one read from the minibuffer. to enable can be determined in various ways--either the one most
recently used, or the one specified by `default-input-method', or
With a prefix argument, read an input method from the minibuffer and as a last resort by reading the name of an input method in the
turn it on. minibuffer.
The default is to use the most recent input method specified With a prefix argument, read an input method name with the minibuffer
and enable that one. The default is the most recent input method specified
\(not including the currently active input method, if any)." \(not including the currently active input method, if any)."
(interactive "P") (interactive "P")
(if (and current-input-method (not arg)) (if (and current-input-method (not arg))
(inactivate-input-method) (inactivate-input-method)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment