From: Chris Hanson Date: Fri, 4 Aug 1989 03:30:48 +0000 (+0000) Subject: Fix `suspend-scheme' command so that it properly exits the editor X-Git-Tag: 20090517-FFI~11876 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=3cf77776e79a2e3812cae18e1881e7fa8b7c0e96;p=mit-scheme.git Fix `suspend-scheme' command so that it properly exits the editor before leaving Scheme. --- diff --git a/v7/src/edwin/basic.scm b/v7/src/edwin/basic.scm index 50ea35351..d34e23a09 100644 --- a/v7/src/edwin/basic.scm +++ b/v7/src/edwin/basic.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/basic.scm,v 1.99 1989/08/03 01:33:18 cph Exp $ +;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/basic.scm,v 1.100 1989/08/04 03:30:48 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989 Massachusetts Institute of Technology ;;; @@ -211,8 +211,12 @@ With argument, saves visited file first." "P" (lambda (argument) (if argument ((ref-command save-buffer) false)) - (quit) - (update-screens! true))) + (set! edwin-finalization + (lambda () + (set! edwin-finalization false) + (quit) + (edwin))) + ((ref-command suspend-edwin)))) (define-command suspend-edwin "Stop Edwin and return to Scheme." @@ -220,8 +224,8 @@ With argument, saves visited file first." (lambda () (editor-abort *the-non-printing-object*))) (define-command exit-recursive-edit - "Exit normally from a subsystem of a level of editing. -At top level, exit from Edwin like \\[suspend-scheme]." () + "Exit normally from a subsystem of a level of editing." + () (lambda () (exit-recursive-edit 'EXIT)))