From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: support thunks as prompts without readline Date: Fri, 09 May 2008 16:43:37 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1210344466 20342 80.91.229.12 (9 May 2008 14:47:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2008 14:47:46 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 09 16:48:22 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JuTt0-0005vD-PG for guile-devel@m.gmane.org; Fri, 09 May 2008 16:47:51 +0200 Original-Received: from localhost ([127.0.0.1]:36931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuTsI-0000KZ-HP for guile-devel@m.gmane.org; Fri, 09 May 2008 10:47:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuTri-0008TA-3Q for guile-devel@gnu.org; Fri, 09 May 2008 10:46:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuTrg-0008SE-Iz for guile-devel@gnu.org; Fri, 09 May 2008 10:46:29 -0400 Original-Received: from [199.232.76.173] (port=43885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuTrg-0008S9-7r for guile-devel@gnu.org; Fri, 09 May 2008 10:46:28 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:50769 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JuTrf-00056Q-Th for guile-devel@gnu.org; Fri, 09 May 2008 10:46:28 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 23495552D for ; Fri, 9 May 2008 10:44:22 -0400 (EDT) Original-Received: from unquote (ATuileries-152-1-22-52.w82-123.abo.wanadoo.fr [82.123.50.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id A2254552C for ; Fri, 9 May 2008 10:44:21 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Pobox-Relay-ID: 6981895E-1DD6-11DD-9147-80001473D85F-02397024!a-sasl-fastnet.pobox.com X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7227 Archived-At: --=-=-= Hi, --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-support-thunks-as-prompts-as-readline-does.patch Content-Description: thunks as patches quoi >From 69fc67efaad628a866e14ead4cb96f102316b82b 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 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 --=-=-= -- http://wingolog.org/ --=-=-=--