From: Ludovic Kuty
Subject: How to view all the elements of a list with SLIME ?
Date: 
Message-ID: <1142106378.268937.140950@e56g2000cwe.googlegroups.com>
Hello,

When SLIME (clisp) returns a long list, it does not display it fully
(using dots). Sometimes it is interesting to view the whole list even
if it is very long. In this case, I just wanted to be sure the
cross-product was right.
Do you know how to do it ? Maybe by customizing SLIME.

TIA,

Ludovic Kuty

CL-USER> (cross-product #'cons '(A B C D E F) '(1 2 3 4 5 6 7 8))
((A . 1) (B . 1) (C . 1) (D . 1) (E . 1) (F . 1) (A . 2) (B . 2) (C .
2)
 (D . 2) ...)
CL-USER> '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30)
(1 2 3 4 5 6 7 8 9 10 ...)
CL-USER>

From: Pascal Bourguignon
Subject: Re: How to view all the elements of a list with SLIME ?
Date: 
Message-ID: <87fylorc46.fsf@thalassa.informatimago.com>
"Ludovic Kuty" <············@gmail.com> writes:

> Hello,
>
> When SLIME (clisp) returns a long list, it does not display it fully
> (using dots). Sometimes it is interesting to view the whole list even
> if it is very long. In this case, I just wanted to be sure the
> cross-product was right.
> Do you know how to do it ? Maybe by customizing SLIME.
>
> TIA,
>
> Ludovic Kuty
>
> CL-USER> (cross-product #'cons '(A B C D E F) '(1 2 3 4 5 6 7 8))
> ((A . 1) (B . 1) (C . 1) (D . 1) (E . 1) (F . 1) (A . 2) (B . 2) (C .
> 2)
>  (D . 2) ...)
> CL-USER> '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
> 24 25 26 27 28 29 30)
> (1 2 3 4 5 6 7 8 9 10 ...)
> CL-USER>

This is not a slime question, but a pure Common Lisp question:

[47]> (setf *print-pretty* t *print-length* 4  *print-depth* 2)
2
[48]> '((1 2 3 4 5 6 7) (1 2 3 (1 2 3 (1 2 3 4 5 6 7) 4 5 6 7) 4 5 6 7) (1 2 3 4 5 6 7))
((1 2 3 4 ...) (1 2 3 (1 2 3 (1 2 3 4 ...) ...) ...) (1 2 3 4 ...))
[49]> (setf *print-pretty* t *print-length* nil  *print-depth* nil)
NIL
[50]> '((1 2 3 4 5 6 7) (1 2 3 (1 2 3 (1 2 3 4 5 6 7) 4 5 6 7) 4 5 6 7) (1 2 3 4 5 6 7))
((1 2 3 4 5 6 7) (1 2 3 (1 2 3 (1 2 3 4 5 6 7) 4 5 6 7) 4 5 6 7)
 (1 2 3 4 5 6 7))
[51]> 


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

HEALTH WARNING: Care should be taken when lifting this product,
since its mass, and thus its weight, is dependent on its velocity
relative to the user.
From: Ludovic Kuty
Subject: Re: How to view all the elements of a list with SLIME ?
Date: 
Message-ID: <1142108334.165375.124070@v46g2000cwv.googlegroups.com>
Thanks.
Actually *print-depth* has no effect on the display in the little
examples I've tried. Don't knowwhy. But *print-level* works and the
output is replaced by a # when the list is too deep. I just found it
with Google.

CL-USER> (setf *print-pretty* t *print-length* 6  *print-level* 3)
3
CL-USER> '((1 ( 2 (3 4 5 6 7 8 9))) 1 2 3 4 5 6 7 8 9 10)
((1 (2 #)) 1 2 3 4 5 ...)
From: Pascal Bourguignon
Subject: Re: How to view all the elements of a list with SLIME ?
Date: 
Message-ID: <87bqwcr7bs.fsf@thalassa.informatimago.com>
"Ludovic Kuty" <············@gmail.com> writes:

> Thanks.
> Actually *print-depth* has no effect on the display in the little
> examples I've tried. Don't knowwhy. 

Probably because *print-depth* is no COMMON-LISP variable. (*^_^*)
Sorry for the confusion.


> But *print-level* works and the
> output is replaced by a # when the list is too deep. I just found it
> with Google.
>
> CL-USER> (setf *print-pretty* t *print-length* 6  *print-level* 3)
> 3
> CL-USER> '((1 ( 2 (3 4 5 6 7 8 9))) 1 2 3 4 5 6 7 8 9 10)
> ((1 (2 #)) 1 2 3 4 5 ...)


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

NEW GRAND UNIFIED THEORY DISCLAIMER: The manufacturer may
technically be entitled to claim that this product is
ten-dimensional. However, the consumer is reminded that this
confers no legal rights above and beyond those applicable to
three-dimensional objects, since the seven new dimensions are
"rolled up" into such a small "area" that they cannot be
detected.