;;; -*-Scheme-*-
;;;
-;;; $Id: intmod.scm,v 1.92 1998/06/07 08:19:11 cph Exp $
+;;; $Id: intmod.scm,v 1.93 1998/06/21 09:02:01 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-98 Massachusetts Institute of Technology
;;;
(let ((start (mark1+ (ref-variable comint-last-input-end) 'LIMIT))
(end (port/mark (buffer-interface-port (selected-buffer) #t))))
(let ((value-mark
- (re-search-backward
- ";\\(Unspecified return value\\|Value: \\|Value [0-9]+: \\)"
- end start #f)))
+ (re-search-backward flush-output-regexp end start #f)))
(let ((start (mark-left-inserting-copy start))
(end (or value-mark end)))
(if (mark< start end)
(delete-string m e)
(insert-string "*** flushed ***" m)))))))
(mark-temporary! start))))))
+
+(define flush-output-regexp
+ (string-append "^;"
+ "\\("
+ "Unspecified return value$"
+ "\\|"
+ "Value: "
+ "\\|"
+ "Value [0-9]+: "
+ "\\|"
+ "Quit!$"
+ "\\)"))
\f
(define (inferior-repl-eval-region buffer region)
(inferior-repl-eval-ok? buffer)