bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] a typo fix (Re: Readline-8.0-beta2 available for download


From: 林宏雄
Subject: [Bug-readline] a typo fix (Re: Readline-8.0-beta2 available for download)
Date: Sat, 1 Dec 2018 12:07:14 +0900

A trivial fix.
  - void -> int
  - add "_name" 

--- rltech.texi.org     2018-09-19 02:11:17.000000000 +0900
+++ rltech.texi 2018-11-30 00:13:43.540390800 +0900
@@ -720,7 +720,7 @@
 be supplied in a @code{set keymap} inputrc line (@pxref{Readline Init File}).
address@hidden deftypefun

address@hidden void rl_set_keymap (const char *name, Keymap keymap)
address@hidden int rl_set_keymap_name (const char *name, Keymap keymap)
 Set the name of @var{keymap}.  This name will then be "registered" and
 available for use in a @code{set keymap} inputrc directive
address@hidden Init File}).

The following description is not clear for me.  Here is my possible change proposal.
-----
Set the name of @var{keymap}.  This name will then be "registered" and
available for use in a @code{set keymap} inputrc directive
@pxref{Readline Init File}).
If @var{keymap} is already registered, the name associated with the
given keymap is replaced to @var{name}.
If @var{name} is already registered, the keymap associated with the
given name is replaced to @var{keymap}.
If @var{name} is one of Readline's builtin names or @var{keymap} is
one of Readline's builtin keymaps, it is invalid and just returns -1;
otherwise returns positive value.
Readline will make a copy of @var{name}.

-----
Hiroo Hayashi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]