diff --git a/doc/nano.texi b/doc/nano.texi index a563840a..816b95a2 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -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} diff --git a/doc/nanorc.5 b/doc/nanorc.5 index 1527c518..c8166c02 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -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