Skip to content

Commit

Permalink
* WITH-ROOM-FOR-GRAPHICS, WITH-END-OF-LINE-ACTION,
Browse files Browse the repository at this point in the history
WITH-END-OF-PAGE-ACTION: if STREAM is T, use *STANDARD-OUTPUT*
  • Loading branch information
Alexey Dejneka committed Jul 18, 2001
1 parent 5f49ba7 commit ec113e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion stream-output.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,16 @@
(defmacro with-room-for-graphics ((&optional (stream t)
&key (move-cursor t) height record-type)
&body body)
(declare (ignore stream move-cursor height record-type body))
(declare (ignore stream move-cursor height record-type body)
(type symbol stream))
(when (eq stream t)
(setq stream '*standard-output*))
'(error "WITH-ROOM-FOR-GRAPHICS not implemented!"))

(defmacro with-end-of-line-action ((stream action) &body body)
(declare (type symbol stream))
(when (eq stream t)
(setq stream '*standard-output*))
(let ((sym (gensym)))
`(let ((,sym (stream-end-of-line-action ,stream)))
(setf (stream-end-of-line-action ,stream) ,action)
Expand All @@ -328,6 +334,9 @@
(setf (stream-end-of-line-action ,stream) ,sym)))))

(defmacro with-end-of-page-action ((stream action) &body body)
(declare (type symbol stream))
(when (eq stream t)
(setq stream '*standard-output*))
(let ((sym (gensym)))
`(let ((,sym (stream-end-of-page-action ,stream)))
(setf (stream-end-of-page-action ,stream) ,action)
Expand Down

0 comments on commit ec113e1

Please sign in to comment.