Changeset 6607


Ignore:
Timestamp:
May 25, 2007, 5:05:30 AM (18 years ago)
Author:
Gary Byers
Message:

INSERT-STRING is simpler if no start/end args, so hair up (less important)
callers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/hemlock/src/streams.lisp

    r806 r6607  
    9595(defun hemlock-output-unbuffered-sout (stream string start end)
    9696  (with-left-inserting-mark (mark (hemlock-output-stream-mark stream))
    97     (insert-string mark string start end)
    98     ))
     97    (unless (and (eql start 0)
     98                 (eql end (length string)))
     99      (setq string (subseq string start end)))
     100    (insert-string mark string)))
    99101   
    100102
     
    112114  (hemlock-output-unbuffered-sout stream string start end))
    113115
    114 #+NIL
    115 (defmethod excl:stream-line-length ((stream hemlock-output-stream))
    116   (let* ((buffer (line-buffer (mark-line (hemlock-output-stream-mark stream)))))
    117        (when buffer
    118          (do ((w (buffer-windows buffer) (cdr w))
    119               (min most-positive-fixnum (min (window-width (car w)) min)))
    120              ((null w)
    121               (if (/= min most-positive-fixnum) min))))))
    122116
    123117(defmethod stream-finish-output ((stream hemlock-output-stream)))
Note: See TracChangeset for help on using the changeset viewer.