From 2b70bf0eb389baa8c4788d9f6e20e6fda5d2f0de Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 9 May 2008 16:42:44 +0200 Subject: [PATCH] support thunks as prompts, as readline does. * ice-9/boot-9.scm (repl-reader): Support thunks as prompts. --- ice-9/boot-9.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ice-9/boot-9.scm b/ice-9/boot-9.scm index 6ada33c68..32610bbc4 100644 --- a/ice-9/boot-9.scm +++ b/ice-9/boot-9.scm @@ -2526,7 +2526,7 @@ module '(ice-9 q) '(make-q q-length))}." ;;; the readline library. (define repl-reader (lambda (prompt) - (display prompt) + (display (if (string? prompt) prompt (prompt))) (force-output) (run-hook before-read-hook) ((or (fluid-ref current-reader) read) (current-input-port))))