From: Chris Hanson Date: Sat, 2 Feb 2008 06:53:37 +0000 (+0000) Subject: Work around bug in variable linking mechanism. X-Git-Tag: 20090517-FFI~353 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=6de438f5d580474ab9c82ddb6d1d2e86ba97ecee;p=mit-scheme.git Work around bug in variable linking mechanism. --- diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index 65191b8ee..65677b292 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.640 2008/02/02 06:51:39 cph Exp $ +$Id: runtime.pkg,v 14.641 2008/02/02 06:53:36 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -4290,13 +4290,13 @@ USA. (files "usrint") (parent (runtime)) (export () - (write-notification-line with-notification) prompt-for-command-char prompt-for-command-expression prompt-for-confirmation prompt-for-evaluated-expression prompt-for-expression - with-notification) + with-notification + write-notification-line) (export (runtime rep) port/set-default-environment port/write-result) diff --git a/v7/src/runtime/usrint.scm b/v7/src/runtime/usrint.scm index f6791da55..c8fea1ab8 100644 --- a/v7/src/runtime/usrint.scm +++ b/v7/src/runtime/usrint.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: usrint.scm,v 1.30 2008/02/02 05:48:57 cph Exp $ +$Id: usrint.scm,v 1.31 2008/02/02 06:53:37 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -294,10 +294,7 @@ USA. (define (with-notification message #!optional thunk) (if (or (default-object? thunk) (not thunk)) - (let ((port (notification-output-port))) - (fresh-line port) - (write-notification-prefix port) - (message (wrap-notification-port port))) + (write-notification-line message) (let ((done? #f) (n)) (dynamic-wind @@ -329,6 +326,12 @@ USA. (set! n) (write-string "done" port) (newline port)))))))) + +(define (write-notification-line message) + (let ((port (notification-output-port))) + (fresh-line port) + (write-notification-prefix port) + (message (wrap-notification-port port)))) (define (wrap-notification-port port) (make-port wrapped-notification-port-type port))