display patch, was: get name of variable as string in function?



On Feb. 11, 2012, Raymond Toy wrote:
------------------------------------------------
>Not sure if it will make a difference, but you might want to compile and
>comm.lisp.  Something like
>
> :lisp (load (compile-file "<path>/comm.lisp"))
---------------------------------------------------------------
This seems to work for me:
(display2d:false set in my init file)

------------------------------------------
Maxima 5.26.0 http://maxima.sourceforge.net
using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)


(%i1) a : 2$

(%i2) :lisp $_
((MSETQ) $A 2)

(%i2) :lisp (load (compile-file "c:/work2/comm-new.lisp"))

Compiling c:/work2/comm-new.lisp.
End of Pass 1.  

;; Note: Tail-recursive call of SUBST1 was replaced by iteration.
;; Note: Tail-recursive call of SUBST2 was replaced by iteration.
;; Note: Tail-recursive call of $TRUNC was replaced by iteration.
;; Note: Tail-recursive call of DISP2 was replaced by iteration.
;; Note: Tail-recursive call of DISP2 was replaced by iteration.
;; Note: Tail-recursive call of FINDPOWERS1 was replaced by iteration.
End of Pass 2.  
OPTIMIZE levels: Safety=2, Space=3, Speed=3
Finished compiling c:/work2/comm-new.lisp.
73680

(%i2) integrate(-1/(x^2-x),x,-1/2,1/2);
Principal Value
(%o2) log(3)

(%i3) display(a)$
a = 2
---------------------------------
Thanks for the suggestion,

Ted