From bd8ce2a191e450c5ce715d7ae4ad9e996e456073 Mon Sep 17 00:00:00 2001 From: Jason Wilson Date: Mon, 9 Aug 1993 19:38:13 +0000 Subject: [PATCH] Made the command reader check for a command-table in the text before using the default command table. --- v7/src/edwin/comred.scm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/v7/src/edwin/comred.scm b/v7/src/edwin/comred.scm index cb1e902a3..4329747c0 100644 --- a/v7/src/edwin/comred.scm +++ b/v7/src/edwin/comred.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: comred.scm,v 1.100 1993/08/02 23:54:16 cph Exp $ +;;; $Id: comred.scm,v 1.101 1993/08/09 19:38:13 jawilson Exp $ ;;; ;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology ;;; @@ -117,11 +117,26 @@ (let ((window (current-window))) (%dispatch-on-command window - (comtab-entry (buffer-comtabs - (window-buffer window)) - input) + (let ((txtprp-comtab + (get-property-at + 'command-table + (mark-index + (buffer-point (window-buffer window))) + (buffer-group (window-buffer window))))) + (or + (and + txtprp-comtab + (let ((command + (comtab-entry (cadr txtprp-comtab) input))) + (if (eq? command + (ref-command-object undefined)) + false + command))) + (comtab-entry + (buffer-comtabs (window-buffer window)) + input))) false))))) - ((dequeue! command-reader-override-queue))))))))))))) + ((dequeue! command-reader-override-queue))))))))))))) (define (bind-abort-editor-command thunk) (call-with-current-continuation -- 2.25.1