;;; -*-Scheme-*-
;;;
-;;; $Id: artdebug.scm,v 1.23 1993/10/16 07:41:27 cph Exp $
+;;; $Id: artdebug.scm,v 1.24 1993/10/26 00:37:55 cph Exp $
;;;
;;; Copyright (c) 1989-93 Massachusetts Institute of Technology
;;;
select-buffer)
(continuation-browser-buffer condition)))
(message error-type-name " error")))
- (return-to-command-loop #f))))
+ (return-to-command-loop condition))))
(define-command browse-continuation
"Invoke the continuation-browser on CONTINUATION."
;;; -*-Scheme-*-
;;;
-;;; $Id: comred.scm,v 1.107 1993/09/23 07:09:12 cph Exp $
+;;; $Id: comred.scm,v 1.108 1993/10/26 00:37:56 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
;;;
(with-keyboard-macro-disabled
(lambda ()
(bind-condition-handler (list condition-type:abort-current-command)
- handle-abort-condition
+ return-to-command-loop
(lambda ()
(command-reader init))))))
(bind-condition-handler (list condition-type:abort-current-command)
(lambda (condition)
(if (not (condition/^G? condition))
- (handle-abort-condition condition)))
+ (return-to-command-loop condition)))
(lambda ()
(if (and (not (default-object? initialization)) initialization)
(bind-abort-editor-command
(apply-input-event input))))))
(lambda (restart) restart (thunk))))))
-(define (handle-abort-condition condition)
- (return-to-command-loop (abort-current-command/input condition)))
-
-(define (return-to-command-loop input)
- (let ((restart (find-restart 'ABORT-EDITOR-COMMAND)))
+(define (return-to-command-loop condition)
+ (let ((restart (find-restart 'ABORT-EDITOR-COMMAND condition)))
(if (not restart) (error "Missing ABORT-EDITOR-COMMAND restart."))
(keyboard-macro-disable)
- (invoke-restart restart input)))
+ (invoke-restart restart
+ (and (condition/abort-current-command? condition)
+ (abort-current-command/input condition)))))
(define (get-next-keyboard-char)
(if *executing-keyboard-macro?*
;;; -*-Scheme-*-
;;;
-;;; $Id: debug.scm,v 1.22 1993/10/26 00:31:19 cph Exp $
+;;; $Id: debug.scm,v 1.23 1993/10/26 00:37:57 cph Exp $
;;;
;;; Copyright (c) 1992-93 Massachusetts Institute of Technology
;;;
(fluid-let ((starting-debugger? true))
(select-continuation-browser-buffer condition))
(message error-type-name " error")))
- (return-to-command-loop #f))))
+ (return-to-command-loop condition))))
(define starting-debugger? false)
\f
;;; -*-Scheme-*-
;;;
-;;; $Id: editor.scm,v 1.231 1993/10/25 19:57:19 cph Exp $
+;;; $Id: editor.scm,v 1.232 1993/10/26 00:37:58 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-1993 Massachusetts Institute of Technology
;;;
(else
(editor-beep)
(message (condition/report-string condition))
- (return-to-command-loop #f))))
+ (return-to-command-loop condition))))
(define-variable debug-on-internal-error
"True means enter debugger if error is signalled while the editor is running.
(let ((strings (editor-error-strings condition)))
(if (not (null? strings))
(apply message strings)))
- (return-to-command-loop #f))))
+ (return-to-command-loop condition))))
(define-variable debug-on-editor-error
"True means signal Scheme error when an editor error occurs."
;;; -*-Scheme-*-
;;;
-;;; $Id: evlcom.scm,v 1.46 1993/10/21 04:59:00 cph Exp $
+;;; $Id: evlcom.scm,v 1.47 1993/10/26 00:37:59 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
;;;
(debug-scheme-error condition "evaluation")
(begin
(editor-beep)
- (return-to-command-loop #f))))
+ (return-to-command-loop condition))))
(define (default-report-error condition error-type-name)
(let ((report-string (condition/report-string condition)))