From d85f0f04e77de405ef63d0096f5ef8448897e4a1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 11 May 1996 08:38:11 +0000 Subject: [PATCH] Eliminate CALL-WITH-PROTECTED-CONTINUATION. --- v7/src/edwin/editor.scm | 7 ++----- v7/src/edwin/fileio.scm | 4 ++-- v7/src/edwin/shell.scm | 6 +++--- v7/src/edwin/utils.scm | 4 ++-- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/v7/src/edwin/editor.scm b/v7/src/edwin/editor.scm index 1c6ed9cbd..f4106c346 100644 --- a/v7/src/edwin/editor.scm +++ b/v7/src/edwin/editor.scm @@ -1,8 +1,8 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: editor.scm,v 1.240 1995/01/06 17:47:23 cph Exp $ +;;; $Id: editor.scm,v 1.241 1996/05/11 08:37:35 cph Exp $ ;;; -;;; Copyright (c) 1986, 1989-95 Massachusetts Institute of Technology +;;; Copyright (c) 1986, 1989-96 Massachusetts Institute of Technology ;;; ;;; This material was developed by the Scheme project at the ;;; Massachusetts Institute of Technology, Department of @@ -425,9 +425,6 @@ This does not affect editor errors or evaluation errors." (define (exit-scheme) (within-continuation editor-abort %exit)) -(define call-with-protected-continuation - call-with-current-continuation) - (define (unwind-protect setup body cleanup) (dynamic-wind (or setup (lambda () unspecific)) body cleanup)) diff --git a/v7/src/edwin/fileio.scm b/v7/src/edwin/fileio.scm index 6721c089c..9f0cb4914 100644 --- a/v7/src/edwin/fileio.scm +++ b/v7/src/edwin/fileio.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: fileio.scm,v 1.136 1996/05/04 17:37:30 cph Exp $ +;;; $Id: fileio.scm,v 1.137 1996/05/11 08:37:57 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-96 Massachusetts Institute of Technology ;;; @@ -366,7 +366,7 @@ after you find a file. If you explicitly request such a scan with set-buffer-major-mode! enable-buffer-minor-mode!) buffer mode))) - (call-with-protected-continuation + (call-with-current-continuation (lambda (continuation) (bind-condition-handler (list condition-type:error) diff --git a/v7/src/edwin/shell.scm b/v7/src/edwin/shell.scm index 5afcc633f..7b9442ad6 100644 --- a/v7/src/edwin/shell.scm +++ b/v7/src/edwin/shell.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: shell.scm,v 1.12 1995/01/06 01:14:58 cph Exp $ +$Id: shell.scm,v 1.13 1996/05/11 08:36:59 cph Exp $ -Copyright (c) 1991-95 Massachusetts Institute of Technology +Copyright (c) 1991-96 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -240,7 +240,7 @@ Otherwise, one argument `-i' is passed to the shell." (string->number string))) (define (shell-process-cd filename) - (call-with-protected-continuation + (call-with-current-continuation (lambda (continuation) (bind-condition-handler (list condition-type:editor-error) (lambda (condition) diff --git a/v7/src/edwin/utils.scm b/v7/src/edwin/utils.scm index 87efeb418..b4f8caa44 100644 --- a/v7/src/edwin/utils.scm +++ b/v7/src/edwin/utils.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: utils.scm,v 1.39 1996/04/24 02:38:19 cph Exp $ +;;; $Id: utils.scm,v 1.40 1996/05/11 08:38:11 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-96 Massachusetts Institute of Technology ;;; @@ -337,7 +337,7 @@ (decoded-time/year dt)))))))) (define (catch-file-errors if-error thunk) - (call-with-protected-continuation + (call-with-current-continuation (lambda (continuation) (bind-condition-handler (list condition-type:file-error condition-type:port-error) -- 2.25.1