unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* support thunks as prompts without readline
@ 2008-05-09 14:43 Andy Wingo
  2008-05-09 22:36 ` Neil Jerram
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Wingo @ 2008-05-09 14:43 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 5 bytes --]

Hi,


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: thunks as patches quoi --]
[-- Type: text/x-patch, Size: 779 bytes --]

From 69fc67efaad628a866e14ead4cb96f102316b82b Mon Sep 17 00:00:00 2001
From: Andy Wingo <wingo@pobox.com>
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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ice-9/boot-9.scm b/ice-9/boot-9.scm
index d1e6306..b92cfd6 100644
--- a/ice-9/boot-9.scm
+++ b/ice-9/boot-9.scm
@@ -2518,7 +2518,7 @@
 ;;; 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))))
-- 
1.5.5-rc2.GIT


[-- Attachment #3: Type: text/plain, Size: 25 bytes --]

-- 
http://wingolog.org/

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-12 20:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09 14:43 support thunks as prompts without readline Andy Wingo
2008-05-09 22:36 ` Neil Jerram
2008-05-12 19:15   ` Andy Wingo
2008-05-12 20:25     ` Neil Jerram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).