Re: [Bash-completion-devel] _get_comp_words_by_ref

2010-03-14 Thread Freddy Vulto
On 100210 21:48, Freddy Vulto wrote: Maybe we can make the varnames non-optional, and also provide shortcuts by using the arguments, indicating which fixed varnames to return: Done so in commit bdca37a in branch `use-_get_comp_words_by_ref': Improve _get_comp_words_by_ref to return `words' and

Re: [Bash-completion-devel] _get_comp_words_by_ref

2010-02-10 Thread Freddy Vulto
On 100209 13:14, Crestez Dan Leonard wrote: I'm not sure about the arguments to the _get_comp_words_by_ref function. Passing multiple [cur] [prev] [prev2].. arguments doesn't seem all that useful. More than cur and prev would very rarely be useful; and in such a case it might be better to just

[Bash-completion-devel] _get_comp_words_by_ref

2010-02-09 Thread Crestez Dan Leonard
I'm not sure about the arguments to the _get_comp_words_by_ref function. Passing multiple [cur] [prev] [prev2].. arguments doesn't seem all that useful. More than cur and prev would very rarely be useful; and in such a case it might be better to just fetch the array and current index. So what