Explaining better what "all" means when rebinding keys.
This is a soft fix for Savannah bug #42552. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5002 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
1930e8102d
commit
b14fbf719f
|
@ -13,6 +13,8 @@
|
||||||
* src/files.c (do_insertfile): Fix compilation with --enable-tiny
|
* src/files.c (do_insertfile): Fix compilation with --enable-tiny
|
||||||
--enable-histories --enable-multibuffer.
|
--enable-histories --enable-multibuffer.
|
||||||
* src/nano.c: Fix compilation with --enable-tiny --enable-mouse.
|
* src/nano.c: Fix compilation with --enable-tiny --enable-mouse.
|
||||||
|
* doc/man/nanorc.5, doc/texinfo/nano.texi: Explain better what "all"
|
||||||
|
means when rebinding keys. This is a fix for Savannah bug #42552.
|
||||||
|
|
||||||
2014-06-19 Benno Schulenberg <bensberg@justemail.net>
|
2014-06-19 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
|
* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
|
||||||
|
|
|
@ -53,7 +53,7 @@ The supported commands and arguments are:
|
||||||
.TP 3
|
.TP 3
|
||||||
.B set/unset allow_insecure_backup
|
.B set/unset allow_insecure_backup
|
||||||
When backing up files, allow the backup to succeed even if its permissions
|
When backing up files, allow the backup to succeed even if its permissions
|
||||||
can't be (re)set due to special OS considerations. You should
|
can't be (re)set due to special OS considerations. You should
|
||||||
NOT enable this option unless you are sure you need it.
|
NOT enable this option unless you are sure you need it.
|
||||||
.TP
|
.TP
|
||||||
.B set/unset autoindent
|
.B set/unset autoindent
|
||||||
|
@ -219,7 +219,7 @@ Allow \fBnano\fP to be suspended.
|
||||||
.TP
|
.TP
|
||||||
.B set tabsize \fIn\fP
|
.B set tabsize \fIn\fP
|
||||||
Use a tab size of \fIn\fP columns. The value of \fIn\fP must be greater
|
Use a tab size of \fIn\fP columns. The value of \fIn\fP must be greater
|
||||||
than 0. The default value is 8.
|
than 0. The default value is 8.
|
||||||
.TP
|
.TP
|
||||||
.B set/unset tabstospaces
|
.B set/unset tabstospaces
|
||||||
Convert typed tabs to spaces.
|
Convert typed tabs to spaces.
|
||||||
|
@ -272,11 +272,11 @@ be compared against the very first line of the file to be edited,
|
||||||
to determine whether this syntax should be used for that file.
|
to determine whether this syntax should be used for that file.
|
||||||
.TP
|
.TP
|
||||||
.BR magic " [""\fIregex\fR"" ...]
|
.BR magic " [""\fIregex\fR"" ...]
|
||||||
For the currently defined syntax, add one or more regexes which
|
For the currently defined syntax, add one or more regexes which
|
||||||
will be compared against the result of querying the \fBmagic\fP
|
will be compared against the result of querying the \fBmagic\fP
|
||||||
database about the file to be edited, to determine whether this
|
database about the file to be edited, to determine whether this
|
||||||
syntax should be used for that file. This
|
syntax should be used for that file. This
|
||||||
functionality only works when \fBlibmagic\fP is installed on the
|
functionality only works when \fBlibmagic\fP is installed on the
|
||||||
system and will be silently ignored otherwise.
|
system and will be silently ignored otherwise.
|
||||||
.TP
|
.TP
|
||||||
.B color \fIfgcolor\fR,\fIbgcolor\fR """\fIregex\fR""" ...
|
.B color \fIfgcolor\fR,\fIbgcolor\fR """\fIregex\fR""" ...
|
||||||
|
@ -322,25 +322,24 @@ Key bindings may be reassigned via the following commands:
|
||||||
.TP
|
.TP
|
||||||
.BI bind " key function menu"
|
.BI bind " key function menu"
|
||||||
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 (or in all menus where the function exists
|
context of menu \fImenu\fP (or in all menus by using \fBall\fP).
|
||||||
by using \fBall\fP).
|
|
||||||
.TP
|
.TP
|
||||||
.BI unbind " key menu"
|
.BI unbind " key menu"
|
||||||
Unbinds the key \fIkey\fP from the menu named \fImenu\fP (or from all
|
Unbinds the key \fIkey\fP from the menu named \fImenu\fP (or from all
|
||||||
menus where it exists by using \fBall\fP).
|
menus where it exists by using \fBall\fP).
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
The format of \fIkey\fP should be one of:
|
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".
|
||||||
Example: ^C
|
Example: ^C
|
||||||
.TP
|
.TP
|
||||||
.B M-
|
.B M-
|
||||||
followed by a printable character or the word "Space".
|
followed by a printable character or the word "Space".
|
||||||
Example: M-C
|
Example: M-C
|
||||||
.TP
|
.TP
|
||||||
.B F
|
.B F
|
||||||
followed by a numeric value from 1 to 16.
|
followed by a numeric value from 1 to 16.
|
||||||
Example: F10
|
Example: F10
|
||||||
.TP
|
.TP
|
||||||
|
@ -644,7 +643,9 @@ The 'search for a file' menu in the file browser.
|
||||||
The 'go to directory' menu in the file browser.
|
The 'go to directory' menu in the file browser.
|
||||||
.TP
|
.TP
|
||||||
.B all
|
.B all
|
||||||
A special name meaning: apply to all menus where this function exists.
|
A special name that encompasses all menus. For rebinding keys, it really
|
||||||
|
means all menus (which may have unobvious effects, so use it carefully);
|
||||||
|
for unbinding keys, it just means all the menus where the key exists.
|
||||||
|
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -843,10 +843,10 @@ nanorc file:
|
||||||
|
|
||||||
@item bind key function menu
|
@item bind key function menu
|
||||||
Rebinds @code{key} to @code{function} in the context of @code{menu}
|
Rebinds @code{key} to @code{function} in the context of @code{menu}
|
||||||
(or in all menus where the function exists by using @code{all}).
|
(or in all menus by using @code{all}).
|
||||||
|
|
||||||
@item unbind key menu
|
@item unbind key menu
|
||||||
Unbinds @code{key} from the specified @code{menu}
|
Unbinds @code{key} from @code{menu}
|
||||||
(or from all menus where it exists by using @code{all}).
|
(or from all menus where it exists by using @code{all}).
|
||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
@ -1171,7 +1171,9 @@ The 'search for a file' menu in the file browser.
|
||||||
The 'go to directory' menu in the file browser.
|
The 'go to directory' menu in the file browser.
|
||||||
|
|
||||||
@item all
|
@item all
|
||||||
A special name meaning: apply to all menus where this function exists.
|
A special name that encompasses all menus. For rebinding keys, it really
|
||||||
|
means all menus (which may have unobvious effects, so use it carefully);
|
||||||
|
for unbinding keys, it just means all the menus where the key exists.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
|
||||||
|
@ -1282,7 +1284,9 @@ things about using the editor.
|
||||||
@item --disable-histories
|
@item --disable-histories
|
||||||
Disable the code for the handling of the history files: the search and
|
Disable the code for the handling of the history files: the search and
|
||||||
replace strings that were used, and the cursor position at which each
|
replace strings that were used, and the cursor position at which each
|
||||||
file was closed.
|
file was closed. This also eliminates the -H and -P command-line
|
||||||
|
options, which switch on the logging of search/replace strings and
|
||||||
|
cursor positions.
|
||||||
|
|
||||||
@item --disable-justify
|
@item --disable-justify
|
||||||
Disable the justify and unjustify functions.
|
Disable the justify and unjustify functions.
|
||||||
|
|
Loading…
Reference in New Issue