On Tue, Nov 08, 2011 at 10:35:52AM +0100, Juan Jose Garcia-Ripoll wrote:
> On Mon, Nov 7, 2011 at 11:13 PM, Oliver Kullmann
> <O.Kullmann at swansea.ac.uk>wrote:
>
> > Would be good if also the input would appear (and a concluding end-of-line
> > after closefile() would likely also be good).
> >
>
> I am afraid this is Maxima's fault. For some reason it is reading for a
> stream other than *standard-input* and does not allow the lisp to change
> that value. Without this, dribble may not work. See below:
>
> Maxima 5.25post http://maxima.sourceforge.net
> using Lisp ECL 11.1.1
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) :lisp (trace mread)
>
> (MREAD)
> (%i1) 3;
>
> 1> (MREAD #<input stream "stdin"> (NIL))
> <1 (MREAD ((DISPLAYINPUT (0 "stdin" SRC)) NIL 3))
> (%o1) 3
> (%i2) :lisp (defparameter *my-echo* (make-echo-stream *standard-input*
> *standard-output*))
>
> *MY-ECHO*
> (%i2) :lisp (setf *standard-input* *my-echo*)
>
> #<echo stream 0000000004b53e60>
> (%i2) 4;
>
> 1> (MREAD #<input stream "stdin"> (NIL))
> <1 (MREAD ((DISPLAYINPUT (0 "stdin" SRC)) NIL 4))
> (%o2) 4
>
Thanks for looking into it.
Okay, then when logging in Maxima, then one should use
display(t) for the computation of term t, which then shows
also the input.
Thanks for your help!
Oliver