diff options
Diffstat (limited to 'lib/readline/doc/rltech.texi')
-rw-r--r-- | lib/readline/doc/rltech.texi | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/readline/doc/rltech.texi b/lib/readline/doc/rltech.texi index 3624ea3e..28a02d99 100644 --- a/lib/readline/doc/rltech.texi +++ b/lib/readline/doc/rltech.texi @@ -720,19 +720,22 @@ Return the name matching @var{keymap}. @var{name} is one which would be supplied in a @code{set keymap} inputrc line (@pxref{Readline Init File}). @end deftypefun -@deftypefun void rl_set_keymap (const char *name, Keymap keymap) +@deftypefun 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 @pxref{Readline Init File}). -The @var{name} may not be one of Readline's builtin names; +The @var{name} may not be one of Readline's builtin keymap names; you may not add a different name for one of Readline's builtin keymaps. -Readline will make a copy of @var{name}. You may replace the name associated with a given keymap by calling this -function two or more times with the same @var{keymap} argument. -You can associate a registered name with a new keymap by calling this -function two or more times with the same @var{name} argument. +function more than once with the same @var{keymap} argument. +You may associate a registered @var{name} with a new keymap by calling this +function more than once with the same @var{name} argument. There is no way to remove a named keymap once the name has been registered. +Readline will make a copy of @var{name}. +The return value is greater than zero unless @var{name} is one of +Readline's builtin keymap names or @var{keymap} is one of Readline's +builtin keymaps. @end deftypefun @node Binding Keys @@ -2143,6 +2146,8 @@ character (@samp{\0}) prevents anything being appended automatically. This can be changed in application-specific completion functions to provide the ``most sensible word separator character'' according to an application-specific command line syntax specification. +It is set to the default before any application-specific completion function +is called, and may only be changed within such a function. @end deftypevar @deftypevar int rl_completion_suppress_append |