display expression exactly as entered



Ether Jones <maxima at etherjones.us> writes:
> (%i1) :lisp (defmacro $dd (x) `(progn (displa '((mlable) Raw ,x)) (terpri) ',x))
> ????? dd(x/x);
>
> Maxima encountered a Lisp error:
> ? Error in PROGN [or a callee]: The variable DD is unbound.
> Automatically continuing.
> To enable the Lisp debugger set *debugger-hook* to nil.

That's because the dd(x/x) should have been on a new line. What you
typed made the lisp try to evaluate three forms

(defmacro $dd (x) `(progn (displa '((mlable) Raw ,x)) (terpri) ',x))
dd
(x/x)

the third calls a (nonexistant) function called x/x. If the "dd" form
hadn't caused your lisp implementation to error out, it would have done
too.

Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20111025/c2b236e7/attachment.pgp>;