Relocating the misplaced unbind section, patch mostly by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4619 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Benno Schulenberg 2014-02-27 19:57:52 +00:00
parent 8e82d35670
commit 86fb8dd73c
2 changed files with 24 additions and 15 deletions

View File

@ -1,5 +1,9 @@
2014-02-27 Mike Frysinger <vapier@gentoo.org>
* doc/man/nanorc.5 - Relocate the misplaced unbind section,
and improve formatting. (Patch tweaked by Benno.)
2014-02-27 Benno Schulenberg <bensberg@justemail.net> 2014-02-27 Benno Schulenberg <bensberg@justemail.net>
src/help.c (parse_help_input) - Make 'Space' again an alias * src/help.c (parse_help_input) - Make 'Space' again an alias
for PageDown and 'Minus' for PageUp -- they were mistakenly for PageDown and 'Minus' for PageUp -- they were mistakenly
swapped during code conversion in revision 4223. swapped during code conversion in revision 4223.

View File

@ -19,7 +19,7 @@
.\" <http://www.gnu.org/licenses/>. .\" <http://www.gnu.org/licenses/>.
.\" .\"
.\" $Id$ .\" $Id$
.TH NANORC 5 "version 2.0.0" "August 23, 2007" .TH NANORC 5 "version 2.3.2" "February 2014
.\" Please adjust this date whenever revising the manpage. .\" Please adjust this date whenever revising the manpage.
.\" .\"
.SH NAME .SH NAME
@ -287,12 +287,20 @@ Same as above, except that the expression matching is case insensitive.
Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that
\fIsyntaxfile\fP can only contain \fBsyntax\fP, \fBcolor\fP, and \fIsyntaxfile\fP can only contain \fBsyntax\fP, \fBcolor\fP, and
\fBicolor\fP commands. \fBicolor\fP commands.
.SH KEY BINDINGS .SH KEY BINDINGS
Key bindings may be reassigned via the following commands: Key bindings may be reassigned via the following commands:
.TP .TP
.B bind \fIkey\fP \fIfunction\fP \fImenu\fP .B bind \fIkey\fP \fIfunction\fP \fImenu\fP
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
context of menu \fImenu\fP. The format of \fIkey\fP should be one of: context of menu \fImenu\fP.
.TP
.B unbind \fIkey\fP \fImenu\fP
Unbinds the key \fIkey\fP from the menu named \fImenu\fP (or from all
menus where it exists by using \fBall\fP).
.TP
The format of \fIkey\fP should be one of:
.TP .TP
.B ^ .B ^
followed by an alpha character or the word "Space". followed by an alpha character or the word "Space".
@ -306,8 +314,10 @@ Example: M-C
followed by a numeric value from 1 to 16. followed by a numeric value from 1 to 16.
Example: F10 Example: F10
.TP .TP
Valid function names to be bound include:
.TP 3 Valid \fIfunction\fP names to be bound include:
.TP 2
.B help .B help
Invoke the help menu. Invoke the help menu.
.TP .TP
@ -514,8 +524,9 @@ Toggle whether long lines will be wrapped to the next line.
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window. Toggle whether the suspend sequence (normally ^Z) will suspend the editor window.
.TP .TP
Valid menu sections are: Valid \fImenu\fP sections are:
.TP
.TP 2
.B main .B main
The main editor window where text is entered. The main editor window where text is entered.
.TP .TP
@ -538,7 +549,7 @@ The 'write file' menu.
The 'insert file' menu. The 'insert file' menu.
.TP .TP
.B extcmd .B extcmd
The menu for inserting output from an external comman, reached from the insert menu. The menu for inserting output from an external command, reached from the insert menu.
.TP .TP
.B help .B help
The help menu. The help menu.
@ -558,12 +569,6 @@ The 'go to directory' menu.
.B all .B all
A special name meaning: apply to all menus where this function exists. A special name meaning: apply to all menus where this function exists.
.TP
.B unbind \fIkey\fP \fImenu\fP
Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all
menus by using \fIall\fP. Same key syntax as for binding.
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
context of menu \fImenu\fP. The format of \fIkey\fP should be one of:
.SH FILES .SH FILES
.TP .TP
.I SYSCONFDIR/nanorc .I SYSCONFDIR/nanorc