Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing printing depth

8 views
Skip to first unread message

Paul V Gestwicki

unread,
Oct 9, 1998, 3:00:00 AM10/9/98
to
Greetings all

Can someone tell me how to set up Lisp so that it will print to full
list depth instead of copping out with #'s? I've tried (setf
*print-depth* nil), but that doesn't work for me. I'm using xemacs
allegro cl.

-Paul

Erik Naggum

unread,
Oct 9, 1998, 3:00:00 AM10/9/98
to
* Paul V Gestwicki <p...@acsu.buffalo.edu>

| Can someone tell me how to set up Lisp so that it will print to full list
| depth instead of copping out with #'s? I've tried (setf *print-depth*
| nil), but that doesn't work for me. I'm using xemacs allegro cl.

it's hard to tell, but it appears that you refer to the values printed by
the top-level read-eval-print-loop. normally, *PRINT-LEVEL* is NIL, but
the top-level loop's internal value (in TOP-LEVEL:*PRINT-LEVEL*) is 5.

#:Erik

Tim Bradshaw

unread,
Oct 12, 1998, 3:00:00 AM10/12/98
to
* Paul V Gestwicki wrote:
> Greetings all

> Can someone tell me how to set up Lisp so that it will print to full
> list depth instead of copping out with #'s? I've tried (setf
> *print-depth* nil), but that doesn't work for me. I'm using xemacs
> allegro cl.

If you want to do this locally (which tends to be better, because if
you are anything like me you will sooner-or-later generate some awful
object which will take many hours at best to print, and only then
discover that the printer isn't as interruptible as it should be), you
can use WITH-STANDARD-IO-SYNTAX, or some wrapper on it:

(defun show (thing)
(with-standard-io-syntax
(print thing) (values)))

--tim

0 new messages