From 015ca4e8f84d20b0ed0491b84fc0ac4a721e5428 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 15 Sep 1993 20:30:50 +0000 Subject: [PATCH] Make sure that keyboard macro definition is terminated when ^G is typed or when an error occurs. --- v7/src/edwin/comred.scm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/v7/src/edwin/comred.scm b/v7/src/edwin/comred.scm index 2f7db36cc..0d3cf2207 100644 --- a/v7/src/edwin/comred.scm +++ b/v7/src/edwin/comred.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: comred.scm,v 1.105 1993/08/25 02:32:59 cph Exp $ +;;; $Id: comred.scm,v 1.106 1993/09/15 20:30:50 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology ;;; @@ -66,12 +66,12 @@ unspecific) (define (top-level-command-reader init) - (do ((init init #f)) (#f) - (with-keyboard-macro-disabled - (lambda () - (bind-condition-handler (list condition-type:abort-current-command) - handle-abort-condition - (lambda () (command-reader init))))))) + (with-keyboard-macro-disabled + (lambda () + (bind-condition-handler (list condition-type:abort-current-command) + handle-abort-condition + (lambda () + (command-reader init)))))) (define (command-reader #!optional initialization) (fluid-let ((*last-command* false) @@ -142,6 +142,7 @@ (define (return-to-command-loop input) (let ((restart (find-restart 'ABORT-EDITOR-COMMAND))) (if (not restart) (error "Missing ABORT-EDITOR-COMMAND restart.")) + (keyboard-macro-disable) (invoke-restart restart input))) (define (get-next-keyboard-char) -- 2.25.1