hmm, it should be possible to rip it out.
essentially what happens is, if you hit tab, the handler function is called, it looks at the text that is currently stored in the readline buffer, runs the pike tokenizer over it, and then calls another function which tries to figure out the right set of completions for the given input.
the completion function expects a tokenized partial expression and returns an array of completions.
it is not sideeffect free though, as it does insert text into the readline buffer. that could be changed however.
take a look. if you have any questions, let me know...
greetings, martin.