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

(my list displays like this ...)

49 views
Skip to first unread message

cunnil...@gmail.com

unread,
Sep 30, 2012, 10:36:49 PM9/30/12
to
Please help a poor beginner! I just spent a few hours trying to find how to configure this in Allegro CL: I have a function that returns a list. It is a normal list, i.e. it is not circular, it's just a little bit long: the entire print length is about 100 characters, which is only about half-way across the screen. The REPL displays most of it but then abbreviates it like so (this is the list and it is long and ...). Would this be configurable through an ordinary global configuration variable (found in all Common Lisp implementations), or am I running into some configuration specific to Allegro? I searched the help for hours trying to find it.

Zach Beane

unread,
Sep 30, 2012, 10:47:19 PM9/30/12
to
See http://l1sp.org/cl/*print-length* for the scoop.

Zach

cunnil...@gmail.com

unread,
Sep 30, 2012, 10:51:10 PM9/30/12
to
More info: I discovered *print-length*. In my case, it is set to nil, which means no limit on the length. But the behavior is still as described.

Barry Margolin

unread,
Oct 1, 2012, 3:12:01 AM10/1/12
to
In article <fc35b2c1-8ab8-442f...@googlegroups.com>,
cunnil...@gmail.com wrote:

> More info: I discovered *print-length*. In my case, it is set to nil, which
> means no limit on the length. But the behavior is still as described.

See the implementation-specific variable tpl:*print-length*. It controls
how the top-level REPL prints lists. *print-length* is used when your
functions print lists.

--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

cunnil...@gmail.com

unread,
Oct 1, 2012, 10:28:16 AM10/1/12
to
Thanks, Barry. I actually figured that out late last night...another set of top level print constants...
0 new messages