This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: *print-right-margin* ineffective for write
- From: Charles Turner <chturne at gmail dot com>
- To: kawa at sourceware dot org
- Date: Wed, 30 Nov 2011 22:49:13 +0000
- Subject: Re: *print-right-margin* ineffective for write
- References: <4ED68E55.4010306@ipfw.edu>
On 30/11/11 20:13, Taylor Venable wrote:
Hi there. I've hit what looks like it might be a problem with
*print-right-margin* and display vs write.
Yep, that's definitely a problem. For reasons currently unknown to me,
in PrettyWriter#startLogicalBlock, the queueSize == 0 case fails, and
hence the thread location representing *print-right-margin* is not
looked up. queueSize is always three it seems at the start of WRITE
before a DISPLAY, which is weird. This is only the case for WRITE, like
you mentioned. queueSize is normally zero when DISPLAYing for the first
time. The resetting of pretty-printing invariants is done slightly
differently for WRITE, so I can at least see how this problem might be
surfacing.
Thanks for the heads up, I'll look into this.
Charlie.