Fix pagination.
authorChris Hanson <org/chris-hanson/cph>
Thu, 19 Aug 1993 22:43:36 +0000 (22:43 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 19 Aug 1993 22:43:36 +0000 (22:43 +0000)
v7/src/edwin/comred.scm
v7/src/edwin/kmacro.scm

index de03cb1201a559fa2be1050f2b84f5918d50e0fb..63e15a562d107af65517d64723f535ffe3375607 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-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)
index d81380b10118987270b65e9970a202768e2bb528..1027845c76c9540e1384772431f8fe1e9fd083d5 100644 (file)
@@ -1,8 +1,8 @@
 ;;; -*-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