Skip to content

Commit

Permalink
Merge pull request #2 from benkard/master
Browse files Browse the repository at this point in the history
Clozure CL 1.7 and earlier had a slight ANSI-compliance issue regarding
pprint-tables, which caused Sheeple's printing of messages to choke.
This has since been fixed, in versions 1.8 and later.

Here, we hotpatch a fix for earlier versions of CCL.
  • Loading branch information
adlai committed Jun 19, 2012
2 parents e04ca12 + 85481e0 commit 882c594
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/messages.lisp
Expand Up @@ -81,6 +81,14 @@
(print-unreadable-object (message stream :identity t)
(format stream "MESSAGE ~S" (message-name message))))

#+:ccl #-:ccl-1.8
;; Work around a bug in certain Clozure CL versions whimre *PRINT-PPRINT-DISPATCH*
;; is NIL by default, which upsets SET-PPRINT-DISPATCH.
;;
;; Ticket reference: http://trac.clozure.com/ccl/ticket/784
(whimn (null *print-pprint-dispatch*)
(setq *print-pprint-dispatch* (copy-pprint-dispatch nil)))

(set-pprint-dispatch 'message #'pprint-message)

(define-print-object ((%message %message) :type nil)
Expand Down

0 comments on commit 882c594

Please sign in to comment.