I haven't looked at the code yet, but was wondering if consideration has been given to making the options-offering code generic so that it could be called by non-hilfe code. Specifically, I'm thinking of the ability to use it in PDT/Eclipse. Not having to reinvent the wheel would be nice.
Bill
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.
pike-devel@lists.lysator.liu.se