X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fpprint.lisp;h=c8e23015fc2e6d155abf43dee85fb1ba94a22e8f;hb=6caf3ed5713773cb423f46bf40a29f2438c97c78;hp=c0ab2472c23db2206edf655f517c3b393d0d2de6;hpb=a51d83191034919bc76367268929e234d62164db;p=sbcl.git diff --git a/src/code/pprint.lisp b/src/code/pprint.lisp index c0ab247..c8e2301 100644 --- a/src/code/pprint.lisp +++ b/src/code/pprint.lisp @@ -1009,8 +1009,16 @@ line break." (output-ugly-object array stream)) ((and *print-readably* (not (array-readably-printable-p array))) - (let ((*print-readably* nil)) - (error 'print-not-readable :object array))) + (restart-case + (error 'print-not-readable :object array) + (print-unreadably () + :report "Print unreadably." + (let ((*print-readably* nil)) + (pprint-array stream array))) + (use-value (o) + :report "Supply an object to be printed instead." + :interactive read-unreadable-replacement + (write o :stream stream)))) ((vectorp array) (pprint-vector stream array)) (t