docs: mention that string binds may contain function names between braces

This commit is contained in:
Benno Schulenberg 2022-08-14 16:14:21 +02:00
parent 2a515058be
commit 8b4bf2bb8d
2 changed files with 6 additions and 6 deletions

View File

@ -1336,9 +1336,9 @@ Rebinds @code{key} to @code{function} in the context of @code{menu}
@item bind key "string" menu
Makes @code{key} produce @code{string} in the context of @code{menu}
(or in all menus where the key exists when @code{all} is used).
The @code{string} can consist of text or commands or a mix of them.
(To enter a command into the @code{string}, precede its keystroke
with @kbd{M-V}.)
Besides literal text, the @code{string} may contain function names
between braces. These functions will be invoked when the key is typed.
To include a literal opening brace, use @code{@{@{@}}.
@item unbind key menu
Unbinds @code{key} from @code{menu}

View File

@ -551,9 +551,9 @@ Rebinds the given \fIkey\fP to the given \fIfunction\fP in the given \fImenu\fP
.BI bind " key " """" string """" " menu"
Makes the given \fIkey\fR produce the given \fIstring\fR in the given
\fImenu\fR (or in all menus where the key exists when \fBall\fR is used).
The \fIstring\fR can consist of text or commands or a mix of them.
(To enter a command into the \fIstring\fR, precede its keystroke
with \fBM\-V\fR.)
Besides literal text, the \fIstring\fR may contain function names
between braces. These functions will be invoked when the key is typed.
To include a literal opening brace, use \fB{{}\fR.
.TP
.BI unbind " key menu"
Unbinds the given \fIkey\fP from the given \fImenu\fP (or from all