What are the magic performed by (cl-user::run)?



XeCycle <XeCycle at Gmail.com> writes:

> Hi,
>
> I want to embed maxima in my common lisp program, i.e. calling
> maxima routines directly.  I tried embeddable maxima, which works
> in most cases except with some packages, namely FFT.  That one
> doesn't load.  Some else are loadable with the ($load "vect")
> syntax.  My normal maxima installation can load FFT via
> load(fft);, but cannot accept ($load "fft"), unless I do
> (cl-user::run) then to_lisp(); and type that.  Seems the (run)
> did some magic?  Starting maxima and return to lisp is not
> acceptable for my task, can I do what it did to setup my
> environment correctly?

Yup, found a workaround.  Start maxima normally, to_lisp(), then
save the core image.  Loading this core image afterwards works.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591