From: Chris Hanson Date: Sat, 23 Oct 1999 03:16:22 +0000 (+0000) Subject: Don't add newline before prompt at beginning of buffer. X-Git-Tag: 20090517-FFI~4436 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0789ec95ef48c3fb7cd6ed48dea3fe94f8d21c81;p=mit-scheme.git Don't add newline before prompt at beginning of buffer. --- diff --git a/v7/src/edwin/intmod.scm b/v7/src/edwin/intmod.scm index 20f9ef899..0060dd328 100644 --- a/v7/src/edwin/intmod.scm +++ b/v7/src/edwin/intmod.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: intmod.scm,v 1.101 1999/10/23 03:02:22 cph Exp $ +;;; $Id: intmod.scm,v 1.102 1999/10/23 03:16:22 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-1999 Massachusetts Institute of Technology ;;; @@ -112,7 +112,7 @@ With two C-u's, creates a new REPL buffer with a new evaluation environment. (signal-thread-event editor-thread (lambda () (unwind-inferior-repl-buffer buffer)))))))))) - + (define (make-init-message message) (if message (cmdl-message/append cmdl-message/init-inferior message) @@ -129,7 +129,7 @@ With two C-u's, creates a new REPL buffer with a new evaluation environment. (define (inferior-repl/quit) unspecific) - + (define (current-repl-buffer buffer) (let ((buffer (current-repl-buffer* buffer))) (if (not buffer) @@ -158,7 +158,7 @@ With two C-u's, creates a new REPL buffer with a new evaluation environment. (define (initialize-inferior-repls!) (set! repl-buffers '()) unspecific) - + (define (wait-for-input port mode ready? level) (signal-thread-event editor-thread (lambda () @@ -184,7 +184,13 @@ With two C-u's, creates a new REPL buffer with a new evaluation environment. (define (standard-prompt-spacing port) (fresh-line port) - (newline port) + (enqueue-output-operation! + port + (lambda (mark transcript?) + transcript? + (if (not (group-start? mark)) + (insert-newline mark)) + #t)) (enqueue-output-operation! port (lambda (mark transcript?) transcript?