Updating the docs for the narrower meaning of 'all' when rebinding keys.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5023 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-06-27 16:27:52 +00:00
parent 4651f49fca
commit 64fd3b8d0e
3 changed files with 10 additions and 8 deletions

View File

@ -7,6 +7,7 @@
the meaning of 'all' to "all menus where the function exists". the meaning of 'all' to "all menus where the function exists".
* src/rcfile.c (is_universal): New function, returning TRUE for the * src/rcfile.c (is_universal): New function, returning TRUE for the
functions that are present in most menus but only listed in MMAIN. functions that are present in most menus but only listed in MMAIN.
* doc/man/nanorc.5, doc/texinfo/nano.texi: Update the docs for this.
2014-06-25 Benno Schulenberg <bensberg@justemail.net> 2014-06-25 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c (do_browser): Allow 'firstfile' and 'lastfile' to be * src/browser.c (do_browser): Allow 'firstfile' and 'lastfile' to be

View File

@ -322,7 +322,8 @@ 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 by using \fBall\fP). context of menu \fImenu\fP (or in all menus where the function exists
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
@ -655,9 +656,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 that encompasses all menus. For rebinding keys, it really A special name that encompasses all menus.
means all menus (which may have unobvious effects, so use it carefully); For \fBbind\fR it means all menus where the specified \fIfunction\fR exists;
for unbinding keys, it just means all the menus where the key exists. for \fBunbind\fR it means all menus where the specified \fIkey\fR exists.
.SH FILES .SH FILES
.TP .TP

View File

@ -843,7 +843,7 @@ 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 by using @code{all}). (or in all menus where the function exists by using @code{all}).
@item unbind key menu @item unbind key menu
Unbinds @code{key} from @code{menu} Unbinds @code{key} from @code{menu}
@ -1183,9 +1183,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 that encompasses all menus. For rebinding keys, it really A special name that encompasses all menus. For @code{bind} it means
means all menus (which may have unobvious effects, so use it carefully); all menus where the specified @code{function} exists; for @code{unbind}
for unbinding keys, it just means all the menus where the key exists. it means all menus where the specified @code{key} exists.
@end table @end table