Changeset 6771 for branches


Ignore:
Timestamp:
Jun 20, 2007, 11:31:27 AM (17 years ago)
Author:
Gary Byers
Message:

I think that I like %command-loop's behavior, finally.

File:
1 edited

Legend:

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

    r6702 r6771  
    456456        (let* ((temporary-object-pool (allocate-temporary-object-pool)))
    457457          (unwind-protect
    458                (multiple-value-bind (key self-insert)
    459                    (get-key-event *editor-input*)
    460                  (progn
     458               (progn
     459                 (unless (eq *current-buffer* *echo-area-buffer*)
     460                   (unless (or (zerop (length cmd))
     461                               (not (value hemlock::key-echo-delay)))
     462                     (editor-sleep (value hemlock::key-echo-delay))
     463                     (unless (listen-editor-input *editor-input*)
     464                       (clear-echo-area)
     465                       (dotimes (i (length cmd))
     466                         (hemlock-ext:print-pretty-key (aref cmd i) *echo-area-stream*)
     467                         (write-char #\space *echo-area-stream*)))))
     468                 (multiple-value-bind (key self-insert)
     469                     (get-key-event *editor-input*)
    461470                   (unless (eq *current-buffer* *echo-area-buffer*)
    462471                     (when (buffer-modified *echo-area-buffer*)
    463                        (clear-echo-area))
    464                      (unless (or (zerop (length cmd))
    465                                  (not (value hemlock::key-echo-delay)))
    466                        (editor-sleep (value hemlock::key-echo-delay))
    467                        (unless (listen-editor-input *editor-input*)
    468                          (clear-echo-area)
    469                          (dotimes (i (length cmd))
    470                            (hemlock-ext:print-pretty-key (aref cmd i) *echo-area-stream*)
    471                            (write-char #\space *echo-area-stream*)))))
     472                       (clear-echo-area)))
    472473                   (vector-push-extend key cmd)
    473474                   (multiple-value-bind (trans-result prefix-p)
Note: See TracChangeset for help on using the changeset viewer.