[Openmcl-devel] pretty printing
Philippe Sismondi
psismondi at arqux.com
Wed Nov 18 07:26:50 PST 2009
On 2009-11-18, at 4:01 AM, Tobias C. Rittweiler wrote:
> Philippe Sismondi <psismondi at arqux.com> writes:
>
>> Should I expect ccl to pretty-print when *print-pretty* is set to T?
>>
>> I am new to CL, so what I did was to type in the example in
>> Hyperspec:
>>
>> (let ((*print-pretty* t))
>> (progn (write '(let ((a 1) (b 2) (c 3)) (+ a b c))) nil))
>>
>>>> (LET ((A 1)
>>>> (B 2)
>>>> (C 3))
>>>> (+ A B C))
>> => NIL
>>
>> I don't get any indentation when I type that example into ccl. The
>> example just gets printed on one line of output, no indentation.
>>
>> Am I supposed to do some additional thing to get the output shown?
>> Additional parameters, or fiddle with dispatch tables?
>
> I have patches for SBCL's pretty printer which emit a mandatory
> instead
> of a linear newline after each of LET's clauses -- among other goodies
> like pretty-printing LOOP forms sanely. They should not be difficult
> to
> adapt for CCL if you're interested.
>
> -T.
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
I am interested, thank you. Let me know how to avail myself of the
patches please.
- P. -
More information about the Openmcl-devel
mailing list