Jose A. Ortega Ruiz wrote:
- ge:completions (PREFIX MODULE)
Returns a list of all identifiers visible in MODULE's namespace whose
string rep starts with PREFIX. Of course, here just returning a list
of all visible identifiers is enough; the filtering is easy to implement.
This one is low-hanging fruit as Ikarus already has 'apropos'. However,
the interface to 'apropos' isn't quite right for 'ge:completions'.
'$apropos-list' on the other hand, is. On my system I exported it, and
rebuilt ikarus (changing "makefile.ss" accordingly). Then,
'ge:completions' can be:
(define (ge:completions prefix library)
(define (match? elt)
(equal? library (list-ref elt 0)))
(find match? ($apropos-list prefix 'ge:completions)))
Well, I think Geiser sends 'prefix' as a string, so maybe throw in a
'string->symbol'.
Aziz, what do you think? Can you export '$apropos-list' or something
like it for the sake of Geiser?
Ed