X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fpp-backq.lisp;h=9c4c7c9f8bc324f58240a4c1e3ba7e2576ca6537;hb=a22dd643fb599880f4c0856e1a85bffe4358aea8;hp=9b2ff78bc72b2f8c81650ce04b4baa773efd73f2;hpb=7f029da277c068fd346c5d95303f7e4eeafbdcfc;p=sbcl.git diff --git a/src/code/pp-backq.lisp b/src/code/pp-backq.lisp index 9b2ff78..9c4c7c9 100644 --- a/src/code/pp-backq.lisp +++ b/src/code/pp-backq.lisp @@ -82,6 +82,12 @@ ;; attributes rather than per-stream actually makes life easier. ;; Since all of the attributes are shared in the dynamic state, we ;; can do... -- CSR, 2003-09-30 + ;; + ;; [...] above referred to the trick of printing to a string stream, + ;; and then simply printing the resulting sequence to the pretty + ;; stream, possibly with a space prepended. However, this doesn't + ;; work for pretty streams which need to do margin calculations. Oh + ;; well. It was good while it lasted. -- CSR, 2003-12-15 (let ((output (with-output-to-string (s) (write (cadr form) :stream s)))) (unless (= (length output) 0) @@ -89,7 +95,7 @@ (or (char= (char output 0) #\.) (char= (char output 0) #\@))) (write-char #\Space stream)) - (write-sequence output stream)))) + (write (cadr form) :stream stream)))) ;;; This is called by !PPRINT-COLD-INIT, fairly late, because ;;; SET-PPRINT-DISPATCH doesn't work until the compiler works.