| www.delorie.com/gnu/docs/readline/rlman_47.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
rl_completion_matches().
NULL means to use rl_filename_completion_function(), the default
filename completer.
rl_line_buffer defining
the boundaries of text, which is a character string.
If this function exists and returns NULL, or if this variable is
set to NULL, then rl_complete() will call the value of
rl_completion_entry_function to generate matches, otherwise the
array of strings returned will be used.
If this function sets the rl_attempted_completion_over
variable to a non-zero value, Readline will not perform its default
completion even if this function returns no matches.
rl_filename_quote_characters
appears in a completed filename. The function is called with
text, match_type, and quote_pointer. The text
is the filename to be quoted. The match_type is either
SINGLE_MATCH, if there is only one completion match, or
MULT_MATCH. Some functions use this to decide whether or not to
insert a closing quote character. The quote_pointer is a pointer
to any opening quote character the user typed. Some functions choose
to reset this character.
rl_completer_word_break_characters should be
used to break words for the completer.
NULL terminated array of matches.
The first element (matches[0]) is the
maximal substring common to all matches. This function can
re-arrange the list of matches as required, but each element deleted
from the array must be freed.
char **matches, int num_matches, int max_length)
where matches is the array of matching strings,
num_matches is the number of strings in that array, and
max_length is the length of the longest string in that array.
Readline provides a convenience function, rl_display_match_list,
that takes care of doing the display to Readline's output stream. That
function may be called from this hook.
" \t\n\"\\'`@$><=;|&{(".
rl_complete_internal(). The default list is the value of
rl_basic_word_break_characters.
rl_completer_word_break_characters are treated as any other character,
unless they also appear within this list.
rl_filename_quote_characters and rl_filename_quoting_desired
is set to a non-zero value.
rl_filename_quote_chars. This is always non-zero
on entry, and can only be changed within a completion entry generator
function. The quoting is effected via a call to the function pointed to
by rl_filename_quoting_function.
rl_attempted_completion_function sets this variable to a non-zero
value, Readline will not perform its default filename completion even
if the application's completion function returns no matches.
It should be set only by an application's completion function.
rl_complete_internal()
(see section 2.6.2 Completion Functions) for the list of characters.
self-insert.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |