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
Этот коммит содержится в:
родитель
4651f49fca
Коммит
64fd3b8d0e
@ -7,6 +7,7 @@
|
||||
the meaning of 'all' to "all menus where the function exists".
|
||||
* src/rcfile.c (is_universal): New function, returning TRUE for the
|
||||
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>
|
||||
* src/browser.c (do_browser): Allow 'firstfile' and 'lastfile' to be
|
||||
|
@ -322,7 +322,8 @@ Key bindings may be reassigned via the following commands:
|
||||
.TP
|
||||
.BI bind " key function menu"
|
||||
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
|
||||
.BI unbind " key menu"
|
||||
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.
|
||||
.TP
|
||||
.B all
|
||||
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.
|
||||
A special name that encompasses all menus.
|
||||
For \fBbind\fR it means all menus where the specified \fIfunction\fR exists;
|
||||
for \fBunbind\fR it means all menus where the specified \fIkey\fR exists.
|
||||
|
||||
.SH FILES
|
||||
.TP
|
||||
|
@ -843,7 +843,7 @@ nanorc file:
|
||||
|
||||
@item bind key function 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
|
||||
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.
|
||||
|
||||
@item all
|
||||
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.
|
||||
A special name that encompasses all menus. For @code{bind} it means
|
||||
all menus where the specified @code{function} exists; for @code{unbind}
|
||||
it means all menus where the specified @code{key} exists.
|
||||
@end table
|
||||
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user