#| -*-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,
(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)
#| -*-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,
(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
(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))))
\f
(define (wrap-notification-port port)
(make-port wrapped-notification-port-type port))