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: Re: problem with trailing comment in repl Date: Sat, 12 Feb 2011 13:34:03 +0100 Message-ID: References: <87r5beb7dg.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297513760 13393 80.91.229.12 (12 Feb 2011 12:29:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 12:29:20 +0000 (UTC) Cc: guile-devel@gnu.org To: "Jose A. Ortega Ruiz" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Feb 12 13:29:15 2011 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.69) (envelope-from ) id 1PoEbD-0004s4-4k for guile-devel@m.gmane.org; Sat, 12 Feb 2011 13:29:15 +0100 Original-Received: from localhost ([127.0.0.1]:51760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoEbC-0007Pk-NR for guile-devel@m.gmane.org; Sat, 12 Feb 2011 07:29:14 -0500 Original-Received: from [140.186.70.92] (port=52620 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoEb9-0007Os-K2 for guile-devel@gnu.org; Sat, 12 Feb 2011 07:29:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoEb2-0006Wx-Ot for guile-devel@gnu.org; Sat, 12 Feb 2011 07:29:11 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:37395 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoEb2-0006WA-LE; Sat, 12 Feb 2011 07:29:04 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 43F8435E3; Sat, 12 Feb 2011 07:30:03 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=qVhfA0ix7cuJ+be+Bo+fRiXqTSk=; b=JcPRG9 g8V5Eeg14OCCSvdqYn/nN2VmPDILphCAZyMgUfQEiZXa5PXE2+LvLmiCRFOEonvk kYgSn/fqG4OQ20CvSvpE3NHVC+fw5T/DJoUpbSnhjWTPe4GzgcJ20iPTuF/SOxRm otfbb+1VhIl8Ibiu5CEDku8r0IRCnj1dzmveE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=dx0Zdcf/wVMA0nql4slU5Xc+ffID97ax nxg7umHVX46fWD/NdW2PMH5r/CeFa7pvGSxeY82SOkXCF11jsAFL3dueL+i3/pRP ui7QwQrxIhg6ts6GykZS6Dvzh5ek3IKAVQxc8hiIeMtOqg4Np+znoqcSHKTH4XD/ 0jZJ4UZESBI= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 2571E35E2; Sat, 12 Feb 2011 07:30:02 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 2E06435E1; Sat, 12 Feb 2011 07:29:56 -0500 (EST) In-Reply-To: <87r5beb7dg.fsf@gnu.org> (Jose A. Ortega Ruiz's message of "Fri, 11 Feb 2011 22:15:23 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: D02ABB7E-36A3-11E0-A56E-AF401E47CF6F-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:11572 Archived-At: On Fri 11 Feb 2011 22:15, "Jose A. Ortega Ruiz" writes: > scheme@(guile-user)> (define a 3) ;; foo > <- cursor stays here; no prompt > > is that intended? i'm hoping it is not, because it confuses geiser, who > is waiting for a new prompt to mark the end of the transaction. It would be nice if there were a prompt in this case. However, it is difficult to do. Because this case is very much like: guile> (define a 3) ( <- no prompt, waiting for you to finish the expression Or indeed, like: guile> ;; foo <- no prompt After reading an expression, the REPL reader flushes any available whitespace, then goes into a new read. If there are characters waiting on the current input port, as they are if there is more than one expression on one line, no prompt is printed. In this case we flush the whitespace, and start reading at the ";", and keep on reading in the next line. Regards, Andy -- http://wingolog.org/