From a341cc32dfc4b1cf22bf69e0f6dad1168719b69b Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 10 Jan 1992 22:26:54 +0000 Subject: [PATCH] Disallow invocation of editor from within itself. --- v7/src/edwin/editor.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/v7/src/edwin/editor.scm b/v7/src/edwin/editor.scm index 7eedb943a..3b67f9975 100644 --- a/v7/src/edwin/editor.scm +++ b/v7/src/edwin/editor.scm @@ -1,8 +1,8 @@ ;;; -*-Scheme-*- ;;; -;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/editor.scm,v 1.209 1991/11/26 08:02:55 cph Exp $ +;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/editor.scm,v 1.210 1992/01/10 22:26:54 cph Exp $ ;;; -;;; Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology +;;; Copyright (c) 1986, 1989-92 Massachusetts Institute of Technology ;;; ;;; This material was developed by the Scheme project at the ;;; Massachusetts Institute of Technology, Department of @@ -47,7 +47,9 @@ (declare (usual-integrations)) (define (edit . args) - (cond ((not edwin-editor) + (cond ((within-editor?) + (error "edwin: Editor already running")) + ((not edwin-editor) (apply create-editor args)) ((not (null? args)) (error "edwin: Arguments ignored when re-entering editor" args))) -- 2.25.1