docs: mention in the man page how M-V can insert any Unicode code point

This addresses https://savannah.gnu.org/bugs/?63055.

Inspired-by: Tasos Papastylianou <tpapastylianou@hotmail.com>
This commit is contained in:
Benno Schulenberg 2022-09-13 11:01:03 +02:00
parent f420f7c177
commit 98e9a881c0
3 changed files with 16 additions and 4 deletions

View File

@ -74,6 +74,12 @@ using the arrow keys. Holding down the Ctrl or Alt key too will increase
the stride. the stride.
Any cursor movement without Shift being held will cancel such a selection. Any cursor movement without Shift being held will cancel such a selection.
.sp .sp
Any valid Unicode code point can be inserted into the buffer by typing
\fBM\-V\fR followed by the hexadecimal digits of the code point (concluded
with \fB<Space>\fR or \fB<Enter>\fR when it are fewer than six digits).
A literal control code (except \fB^J\fR) can be inserted by typing
\fBM\-V\fR followed by the pertinent keystroke.
.sp
The two lines at the bottom of the screen show some important commands; The two lines at the bottom of the screen show some important commands;
the built-in help (\fB^G\fR) lists all the available ones. the built-in help (\fB^G\fR) lists all the available ones.
The default key bindings can be changed via a \fInanorc\fR file -- see The default key bindings can be changed via a \fInanorc\fR file -- see

View File

@ -222,14 +222,18 @@ typed the key with that value.
@item @item
For any possible character, pressing @kbd{M-V} (Alt+V) and then typing a For any possible character, pressing @kbd{M-V} (Alt+V) and then typing a
six-digit hexadecimal number (starting with @kbd{0} or @kbd{1}) will enter the series of hexadecimal digits (at most six, or concluded with @kbd{Enter} or
corresponding Unicode character into the buffer. @kbd{Space}) will enter the corresponding Unicode character into the buffer.
@end itemize @end itemize
For example, typing @kbd{Esc Esc 2 3 4} will enter the character "ê" --- For example, typing @kbd{Esc Esc 2 3 4} will enter the character "ê" ---
useful when writing about a French party. Typing @kbd{M-V 0 0 2 2 c 4} useful when writing about a French party. Typing @kbd{M-V 0 0 2 2 c 4}
will enter the symbol "⋄", a little diamond. will enter the symbol "⋄", a little diamond.
Typing @kbd{M-V} followed by anything other than a hexadecimal digit
will enter this keystroke verbatim into the buffer, allowing the user
to insert literal control codes (except @code{^J}) or escape sequences.
@node Commands @node Commands
@section Commands @section Commands
@ -1619,7 +1623,8 @@ Switches to editing/viewing the previous buffer when multiple buffers are open.
Switches to editing/viewing the next buffer when multiple buffers are open. Switches to editing/viewing the next buffer when multiple buffers are open.
@item verbatim @item verbatim
Inserts the next keystroke verbatim into the file. Inserts the next keystroke verbatim into the file, or begins Unicode input
when a hexadecimal digit is typed (@pxref{Entering Text} for details).
@item tab @item tab
Inserts a tab at the current cursor location. Inserts a tab at the current cursor location.

View File

@ -828,7 +828,8 @@ Switches to editing/viewing the previous buffer when multiple buffers are open.
Switches to editing/viewing the next buffer when multiple buffers are open. Switches to editing/viewing the next buffer when multiple buffers are open.
.TP .TP
.B verbatim .B verbatim
Inserts the next keystroke verbatim into the file. Inserts the next keystroke verbatim into the file, or begins Unicode input
when a hexadecimal digit is typed.
.TP .TP
.B tab .B tab
Inserts a tab at the current cursor location. Inserts a tab at the current cursor location.