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-d3aeb78583b8
master
Benno Schulenberg 2014-06-20 18:40:34 +00:00
parent 1930e8102d
commit b14fbf719f
3 changed files with 22 additions and 15 deletions

View File

@ -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()'

View File

@ -322,8 +322,7 @@ 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
@ -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

View File

@ -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.