Subject: function/variable name completion via rlwrap
From: Camm Maguire
Date: 09 Dec 2005 10:50:42 -0500
Greetings!
Robert Dodier writes:
> 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.
>
I thought GCL provided completions based on the symbols in the current
(i.e. maxima) package, no?
Take care,
> for what it's worth,
> robert dodier
>
> _______________________________________________
> Maxima mailing list
> Maxima@math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>
--
Camm Maguire camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah