restarting maxima from scratch



> On 2/18/11 3:30 PM, dlakelan wrote:
> > On 02/18/2011 11:45 AM, Raymond Toy wrote:
> >> How is restart() different from quitting maxima and starting maxima
> >> again?  If there is none, the why spend any time adding this code and
> >> testing it?
> > 
> > restart is programmatic, whereas quitting and restarting is not. So
> > for example if you want to derive some results under say varying
> > assumptions, you might want a single batch file which first makes
> > assumptions A and then does some derivation and outputs the results,
> > and then resets the whole system and makes assumptions B and then does
> > the alternative derivation. As I said, kill(all) and reset() goes a
> > long way, but it's not as much of a sure thing as re-execing maxima
> > from scratch.
> > 
> > Also I am using maxima normally from within emacs, but sometimes I
> > want a stand-alone batch file so that for example I can include it in
> > a makefile and have maxima generate TeX output that is included into a
> > document.
> 
> Well, there you go.  Write an elisp function  that kills your maxima
> session and restarts it.  Slime does this nicely for me with Lisp.
> 
> I'll think about how this can be done.   One issue is that I'm not sure
> the running lisp knows where the executable/shell script is.  Configure
> might have to tell it.
While this may be usefull. It is a not right way to do. 
If the kill(all) and reset() do not clean the memory and garbage
then this is a bug  in these functions