Changeset 672
- Timestamp:
- Mar 18, 2004, 4:48:15 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/hemlock/src/streams.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/hemlock/src/streams.lisp
r587 r672 82 82 83 83 (defun hemlock-output-unbuffered-out (stream character) 84 (with-left-inserting-mark (mark (hemlock-output-stream-mark stream)) 85 (insert-character mark character) 86 (redisplay-windows-from-mark mark))) 84 (let* ((b (current-buffer)) 85 (stream-mark (hemlock-output-stream-mark stream)) 86 (new-buf (line-buffer (mark-line stream-mark)))) 87 (unwind-protect 88 (with-left-inserting-mark (mark stream-mark) 89 (setf (current-buffer) new-buf) 90 (insert-character mark character)) 91 (setf (current-buffer) b)))) 87 92 88 93 (defun hemlock-output-unbuffered-sout (stream string start end) 89 (with-left-inserting-mark (mark (hemlock-output-stream-mark stream)) 90 (insert-string mark string start end) 91 (redisplay-windows-from-mark mark))) 94 (let* ((b (current-buffer)) 95 (stream-mark (hemlock-output-stream-mark stream)) 96 (new-buf (line-buffer (mark-line stream-mark)))) 97 (unwind-protect 98 (with-left-inserting-mark (mark stream-mark) 99 (setf (current-buffer) new-buf) 100 (insert-string mark string start end)) 101 (setf (current-buffer) b)))) 102 92 103 93 104 (defun hemlock-output-buffered-out (stream character) 94 ( with-left-inserting-mark (mark (hemlock-output-stream-mark stream))95 (insert-character mark character))) 105 (hemlock-output-unbuffered-out stream character)) 106 96 107 97 108 (defun hemlock-output-buffered-sout (stream string start end) 98 (with-left-inserting-mark (mark (hemlock-output-stream-mark stream)) 99 (insert-string mark string start end))) 109 (hemlock-output-unbuffered-sout stream string start end)) 100 110 101 111 (defun hemlock-output-line-buffered-out (stream character) 102 (with-left-inserting-mark (mark (hemlock-output-stream-mark stream)) 103 (insert-character mark character) 104 (when (char= character #\newline) 105 (redisplay-windows-from-mark mark)))) 112 (hemlock-output-unbuffered-out stream character)) 106 113 107 114 (defun hemlock-output-line-buffered-sout (stream string start end) 108 (declare (simple-string string)) 109 (with-left-inserting-mark (mark (hemlock-output-stream-mark stream)) 110 (insert-string mark string start end) 111 (when (find #\newline string :start start :end end) 112 (redisplay-windows-from-mark mark)))) 115 (hemlock-output-unbuffered-sout stream string start end)) 113 116 114 117 #+NIL … … 121 124 (if (/= min most-positive-fixnum) min)))))) 122 125 123 (defmethod stream-finish-output ((stream hemlock-output-stream)) 124 (redisplay-windows-from-mark (hemlock-output-stream-mark stream))) 125 126 (defmethod stream-force-output ((stream hemlock-output-stream)) 127 (redisplay-windows-from-mark (hemlock-output-stream-mark stream))) 126 (defmethod stream-finish-output ((stream hemlock-output-stream))) 127 128 (defmethod stream-force-output ((stream hemlock-output-stream))) 128 129 129 130 (defmethod close ((stream hemlock-output-stream) &key abort)
Note:
See TracChangeset
for help on using the changeset viewer.
