Pretty printer ignores STREAM-LINE-LENGTH when *PRINT-RIGHT-MARGIN* is bound to NIL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Confirmed
|
Low
|
Unassigned |
Bug Description
CL-USER> *standard-output*
#<SWANK-
CL-USER> (defmethod stream-line-length ((s swank-backend:
200)
STYLE-WARNING: redefining STREAM-LINE-LENGTH (#<STANDARD-CLASS SWANK-BACKEND:
#<STANDARD-METHOD STREAM-LINE-LENGTH (SWANK-
CL-USER> (values *print-pretty* *print-length* *print-
T
NIL
NIL
NIL
CL-USER> (format *standard-output* "~<~A~>" (loop repeat 20 collect "foo ")) ; wraps at around 75
(foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo )
NIL
;; the line-length slot in the pretty-stream structure initializes
;; (line-length (or *print-
;; (setf cl-user::a (sb!impl:
;; default-
;; :type column)
;;
;; but the call to sb-impl:
;; therefore it ignores the line length customization
;;
;; there might be other similar problems like this one due to the wrapped stream
Changed in sbcl: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: printer |