>>>>> "Robert" == Robert Dodier <robert.dodier at gmail.com> writes:
Robert> Pol,
>> I would like to log sessions automatically, saving to a file created
>> at the start, then closing before exiting maxima. (both on linux and on
>> mswindows)
Robert> I think writefile & closefile should do the job. However the
Robert> underlying Lisp stuff (DRIBBLE + i/o streams) is not implemented
Robert> the same by all Lisps. In particular writefile + GCL + Windows
Robert> doesn't work correctly. (I tried it the other day and found that end
Robert> of line characters were not put in the right places; makes the file
Robert> more or less unreadable.)
Robert> Also writefile + SBCL + Linux seems to not capture input (only output).
Robert> Since DRIBBLE + SBCL works OK, I'm guessing this has to do with
Robert> which streams are pointing where ...
This seems to work ok with cmucl, but if you try to describe
something, maxima throws an error. Something about calling
clear-input on the stream being used to save the log.
Robert> A console log seems to be a fairly common request; we (Maxima)
Robert> might want to get writefile to work the same for all Lisp varieties.
Yes, we should probably fix this. Not sure how, yet.
Ray