;;; -*-Scheme-*-
;;;
-;;; $Id: comred.scm,v 1.103 1993/08/19 05:52:22 jawilson Exp $
+;;; $Id: comred.scm,v 1.104 1993/08/19 22:43:36 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
;;;
(do () (false)
(reset-command-state!)
(if (queue-empty? command-reader-override-queue)
- (let ((input
- (if *executing-keyboard-macro?*
- (begin
- (set! keyboard-keys-read (+ keyboard-keys-read 1))
- (keyboard-macro-read-key))
- (with-editor-interrupts-disabled keyboard-read))))
+ (let ((input (get-next-keyboard-char)))
(if (input-event? input)
(apply-input-event input)
(begin
(if (not restart) (error "Missing ABORT-EDITOR-COMMAND restart."))
(invoke-restart restart input)))
\f
+(define (get-next-keyboard-char)
+ (if *executing-keyboard-macro?*
+ (begin
+ (set! keyboard-keys-read (+ keyboard-keys-read 1))
+ (keyboard-macro-read-key))
+ (with-editor-interrupts-disabled keyboard-read)))
+
(define (reset-command-state!)
(set! *last-command* *command*)
(set! *command* false)
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/kmacro.scm,v 1.39 1993/08/19 05:56:15 jawilson Exp $
+;;; $Id: kmacro.scm,v 1.40 1993/08/19 22:42:14 cph Exp $
;;;
-;;; Copyright (c) 1985, 1989-92 Massachusetts Institute of Technology
+;;; Copyright (c) 1985, 1989-93 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of