Improve documentation of a recent commit
* lisp/international/mule-cmds.el (transient-input-method): Doc fix. Add :version tag. (transient-input-method): Doc fix. * etc/NEWS: * doc/emacs/mule.texi (Select Input Method): Fix wording of the last change.
This commit is contained in:
parent
49b6e2716c
commit
3e8cdc404f
3 changed files with 26 additions and 17 deletions
|
|
@ -579,8 +579,8 @@ Enable or disable use of the selected input method (@code{toggle-input-method}).
|
||||||
Select a new input method for the current buffer (@code{set-input-method}).
|
Select a new input method for the current buffer (@code{set-input-method}).
|
||||||
|
|
||||||
@item C-x \ @var{method} @key{RET}
|
@item C-x \ @var{method} @key{RET}
|
||||||
Temporarily enable the selected transient input method, and
|
Temporarily enable the selected transient input method ; it will be
|
||||||
automatically disable it after inserting a single character
|
automatically disabled after inserting a single character
|
||||||
(@code{transient-input-method}).
|
(@code{transient-input-method}).
|
||||||
|
|
||||||
@item C-h I @var{method} @key{RET}
|
@item C-h I @var{method} @key{RET}
|
||||||
|
|
@ -682,13 +682,17 @@ including the string that stands for it in the mode line.
|
||||||
|
|
||||||
@findex transient-input-method
|
@findex transient-input-method
|
||||||
@kindex C-x \
|
@kindex C-x \
|
||||||
To insert only a single character using a transient input method you
|
Sometimes it can be convenient to enable an input method
|
||||||
can first select a transient input method by typing @kbd{C-u C-x \}.
|
@dfn{transiently}, for inserting only a single character. Typing
|
||||||
Then typing @kbd{C-x \} (@code{transient-input-method}) will
|
@kbd{C-x \} (@code{transient-input-method}) will temporarily enable an
|
||||||
temporarily enable the selected transient input method, and disable it
|
input method, let you insert a single character using the input method
|
||||||
automatically after using the activated input method to insert
|
rules, and then automatically disable the input method. If no
|
||||||
a single character. This is useful to insert a character from input
|
transient input method was selected yet, @kbd{C-x \} will prompt you
|
||||||
methods with rare Unicode characters.
|
for an input method; subsequent invocations of this command will
|
||||||
|
enable the selected transient input method. To select a different
|
||||||
|
transient input method, type @kbd{C-u C-x \}. You can select a
|
||||||
|
transient method that is different from the input method which you
|
||||||
|
selected using @kbd{C-u C-\}.
|
||||||
|
|
||||||
@node Coding Systems
|
@node Coding Systems
|
||||||
@section Coding Systems
|
@section Coding Systems
|
||||||
|
|
|
||||||
13
etc/NEWS
13
etc/NEWS
|
|
@ -624,11 +624,14 @@ The menu bar "Help" menu now has a "Show Recent Inputs" item under the
|
||||||
** Input methods
|
** Input methods
|
||||||
|
|
||||||
+++
|
+++
|
||||||
*** 'C-x \' temporarily enables a transient input method.
|
*** Emacs now supports "transient" input methods.
|
||||||
'C-u C-x \' can be used to select a transient input method, e.g.
|
A transient input method is enabled for inserting a single character,
|
||||||
'C-u C-x \ compose RET' selects the 'compose' input method. Then typing
|
and is then automatically disabled. 'C-x \' temporarily enables the
|
||||||
'C-x \ 1 2' will insert the character '½', and disable the input method
|
selected transient input method. Use 'C-u C-x \' to select a
|
||||||
afterwards.
|
transient input method (which can be different from the input method
|
||||||
|
enabled by 'C-\'). For example, 'C-u C-x \ compose RET' selects the
|
||||||
|
'compose' input method; then typing 'C-x \ 1 2' will insert the
|
||||||
|
character '½', and disable the 'compose' input method afterwards.
|
||||||
|
|
||||||
---
|
---
|
||||||
*** New input method 'compose' based on X Multi_key sequences.
|
*** New input method 'compose' based on X Multi_key sequences.
|
||||||
|
|
|
||||||
|
|
@ -1347,13 +1347,14 @@ This is the input method activated automatically by the command
|
||||||
|
|
||||||
(defcustom transient-input-method nil
|
(defcustom transient-input-method nil
|
||||||
"Default transient input method.
|
"Default transient input method.
|
||||||
This is the input method activated automatically by the command
|
This is the input method activated by the command
|
||||||
`transient-input-method' (\\[transient-input-method])."
|
`transient-input-method' (\\[transient-input-method])."
|
||||||
:link '(custom-manual "(emacs)Input Methods")
|
:link '(custom-manual "(emacs)Input Methods")
|
||||||
:group 'mule
|
:group 'mule
|
||||||
:type '(choice (const nil)
|
:type '(choice (const nil)
|
||||||
mule-input-method-string)
|
mule-input-method-string)
|
||||||
:set-after '(current-language-environment))
|
:set-after '(current-language-environment)
|
||||||
|
:version "28.1")
|
||||||
|
|
||||||
(put 'input-method-function 'permanent-local t)
|
(put 'input-method-function 'permanent-local t)
|
||||||
|
|
||||||
|
|
@ -1531,7 +1532,8 @@ To deactivate it programmatically, use `deactivate-input-method'."
|
||||||
"Non-nil inside `toggle-input-method'.")
|
"Non-nil inside `toggle-input-method'.")
|
||||||
|
|
||||||
(defun transient-input-method (&optional arg interactive)
|
(defun transient-input-method (&optional arg interactive)
|
||||||
"Enable transient input method for the current buffer."
|
"Enable a transient input method for the current buffer.
|
||||||
|
If `transient-input-method' was not yet defined, prompt for it."
|
||||||
(interactive "P\np")
|
(interactive "P\np")
|
||||||
(when (or arg (not transient-input-method))
|
(when (or arg (not transient-input-method))
|
||||||
(let* ((default (or (car input-method-history) default-input-method))
|
(let* ((default (or (car input-method-history) default-input-method))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue