[Openmcl-devel] pretty printing
psismondi at arqux.com
Wed Nov 18 15:26:50 UTC 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
>> (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
> of a linear newline after each of LET's clauses -- among other goodies
> like pretty-printing LOOP forms sanely. They should not be difficult
> adapt for CCL if you're interested.
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
I am interested, thank you. Let me know how to avail myself of the
- P. -
More information about the Openmcl-devel