Browse files

Merged in a slightly modified patch by Fred Gilham for FILLING-OUTPUT.

  • Loading branch information...
1 parent d7a84b4 commit 022387d7f76d0133724882d9bb4390a203d42711 Alexey Dejneka committed Nov 28, 2002
Showing with 7 additions and 6 deletions.
  1. +7 −6 text-formatting.lisp
@@ -64,7 +64,7 @@ SUPPRESS-SPACE-AFTER-CONJUNCTION are non-standard."
((fill-width :accessor fill-width :initarg :fill-width)
(break-characters :accessor break-characters :initarg :break-characters
- :initform '(" "))
+ :initform '(#\Space))
(after-line-break :accessor after-line-break :initarg :after-line-break)))
;;; parse-space is from table-formatting.lisp
@@ -92,24 +92,25 @@ SUPPRESS-SPACE-AFTER-CONJUNCTION are non-standard."
(defmacro filling-output ((stream &rest args &key fill-width break-characters
after-line-break after-line-break-initially)
&body body)
- (declare (ignore fill-width break-characters after-line-break))
+ (declare (ignore after-line-break-initially))
(when (eq stream t)
(setq stream '*standard-output*))
(with-gensyms (fill-var break-var after-var initially-var)
`((lambda (&key ((:fill-width ,fill-var))
((:break-characters ,break-var))
((:after-line-break ,after-var))
((:after-line-break-initially ,initially-var)))
+ (declare (ignorable ,fill-var ,break-var ,after-var))
(let ((,stream (make-instance
:stream ,stream
- ,@(and fill-width `((:fill-width ,fill-var)))
+ ,@(and fill-width `(:fill-width ,fill-var))
,@(and break-characters
- `((:break-characters ,break-var)))
+ `(:break-characters ,break-var))
,@(and after-line-break
- `((:after-line-break ,after-var))))))
+ `(:after-line-break ,after-var)))))
(when ,initially-var
- (write-string ,after-var stream))
+ (write-string ,after-var ,stream))

0 comments on commit 022387d

Please sign in to comment.