From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: readline eats previous text on line Date: Thu, 28 Sep 2006 08:49:28 +0100 Message-ID: <87ejtw8m7r.fsf@ossau.uklinux.net> References: <451AEC75.90200@fastmail.fm> <87y7s4ahvc.fsf@zip.com.au> <451B2A4C.2040000@fastmail.fm> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159429964 12171 80.91.229.2 (28 Sep 2006 07:52:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Sep 2006 07:52:44 +0000 (UTC) Cc: guile-user@gnu.org, Kevin Ryde Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Sep 28 09:52:40 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GSqh8-0003nn-31 for guile-user@m.gmane.org; Thu, 28 Sep 2006 09:52:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSqh7-0001FV-EM for guile-user@m.gmane.org; Thu, 28 Sep 2006 03:52:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSqh1-0001Cs-KW for guile-user@gnu.org; Thu, 28 Sep 2006 03:52:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSqh0-0001CI-T8 for guile-user@gnu.org; Thu, 28 Sep 2006 03:52:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSqh0-0001CF-MB for guile-user@gnu.org; Thu, 28 Sep 2006 03:52:26 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GSqm2-0006Ij-UI for guile-user@gnu.org; Thu, 28 Sep 2006 03:57:39 -0400 Original-Received: from laruns (host86-145-154-50.range86-145.btcentralplus.com [86.145.154.50]) by mail3.uklinux.net (Postfix) with ESMTP id A722E409FF2; Thu, 28 Sep 2006 07:49:33 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id BB4E46FF8C; Thu, 28 Sep 2006 08:49:28 +0100 (BST) Original-To: Jon Wilson In-Reply-To: <451B2A4C.2040000@fastmail.fm> (Jon Wilson's message of "Wed, 27 Sep 2006 20:50:04 -0500") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5557 Archived-At: Jon Wilson writes: > Hi Kevin, > >> (readline "foo: ") > > This gives an error. I think what you need is (set-readline-prompt! "foo: "). The reason it's done this way, instead of by a parameter to `readline', is that when readline is activated it applies to the input port as a whole, such that any attempt to read from the port (which doesn't usually involve an explicit `readline' call) will use readline. Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user