function/variable name completion via rlwrap



hello,

at present there is a script "rmaxima" which executes a program
called "rlwrap" to provide readline capability for lisps which don't
have that built in (namely cmucl and sbcl).
it turns out rlwrap recognizes some options which enable
keyword completion and other useful capabilities.
this seems to work OK:

  rlwrap  --complete-filenames  --file  builtins-list.txt  --remember  maxima

then typing something like "foo" either completes "foo"
if there is only one name beginning w/ "foo" or shows the list
of all such names (if there is more than one).

builtins-list.txt is a list of built-in function and variable names.
(http://cvs.sf.net/viewcvs.py/*checkout*/maxima/maxima/share/builtins-list.txt)
the --remember option tells rlwrap to remember words which
are entered, so new function and variable names are also
recognized and autocompleted.

the --break-chars and --always-readline options are also useful.

clisp and gcl have readline built in, but clisp doesn't have
autocompletion enabled and gcl has a list of lisp function
names for autocompletion. so using rlwrap is useful with
clisp and gcl as well.

for what it's worth,
robert dodier