Setup error-handling when re-evaluating arguments (as in
authorChris Hanson <org/chris-hanson/cph>
Tue, 29 Aug 1989 20:04:27 +0000 (20:04 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 29 Aug 1989 20:04:27 +0000 (20:04 +0000)
repeat-complex-command), and also when reading expressions from the
keyboard.

v7/src/edwin/comred.scm
v7/src/edwin/evlcom.scm
v7/src/edwin/make.scm
v7/src/edwin/utils.scm

index 860d3ca3d9a5f75516ade2b6b2d8ab6f0ab78d31..57a2ac4251ffea4395cd1d8e0d81e0e475736664 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/comred.scm,v 1.81 1989/08/12 08:31:32 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/comred.scm,v 1.82 1989/08/29 20:03:49 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989 Massachusetts Institute of Technology
 ;;;
   (apply (command-procedure (name->command (car entry)))
         (map (let ((environment (->environment '(EDWIN))))
                (lambda (expression)
-                 (eval expression environment)))             (cdr entry))))
+                 (eval-with-history expression environment)))
+             (cdr entry))))
 \f
 (define (interactive-argument char prompt)
   (let ((prompting
index e126770fd9906a68eacf75a8af28957c93ed61e5..a63bd8d61d82440897e02768b90f595f922c00e8 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/evlcom.scm,v 1.17 1989/08/12 08:32:04 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/evlcom.scm,v 1.18 1989/08/29 20:04:00 cph Rel $
 ;;;
 ;;;    Copyright (c) 1986, 1989 Massachusetts Institute of Technology
 ;;;
@@ -202,6 +202,12 @@ With an argument, prompts for the evaluation environment."
                          'VISIBLE-DEFAULT
                          default-type)
                      (ref-mode-object prompt-for-expression))))
+
+(define (read-from-string string)
+  (bind-condition-handler '() evaluation-error-handler
+    (lambda ()
+      (with-input-from-string string read))))
+
 (define-major-mode prompt-for-expression scheme #f
   "Major mode for editing solicited input expressions.
 Depending on what is being solicited, either defaulting or completion
index fba969cfd0c702dc6eb4e6835e6af4869d064250..62629583443149ba53de125d58d06ab85edbf16e 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/make.scm,v 3.17 1989/08/14 11:51:13 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/make.scm,v 3.18 1989/08/29 20:04:27 cph Exp $
 
 Copyright (c) 1989 Massachusetts Institute of Technology
 
@@ -37,4 +37,4 @@ MIT in each case. |#
 (declare (usual-integrations))
 
 (package/system-loader "edwin" '() 'QUERY)
-(add-system! (make-system "Edwin" 3 17 '()))
\ No newline at end of file
+(add-system! (make-system "Edwin" 3 18 '()))
\ No newline at end of file
index b8208463d2d72feba75c7e2e2089ab8dbee0ddd0..e9467cb9f20b6dbfe993dbcbc60180572890b56b 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/utils.scm,v 1.19 1989/08/14 09:23:05 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/utils.scm,v 1.20 1989/08/29 20:04:08 cph Rel $
 ;;;
 ;;;    Copyright (c) 1986, 1989 Massachusetts Institute of Technology
 ;;;
               (if (default-object? port)
                   (current-input-port)
                   (guarantee-input-port port))))
-
-(define (read-from-string string)
-  (with-input-from-string string read))\f
+\f
 (define (y-or-n? . strings)
   (define (loop)
     (let ((char (char-upcase (read-char))))