CLCS

Printer Dispatching

The Lisp printer makes its determination of how to print an object as follows:

If the value of *print-pretty* is true, printing is controlled by the current pprint dispatch table; see Pretty Print Dispatch Tables.

Otherwise (if the value of *print-pretty* is false), the object’s print-object method is used; see Default Print-Object Methods.