From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#33403: [Geiser-users] bug#33403: Data length limit in Guile/Geiser/Scheme evaluation Date: Sat, 17 Nov 2018 02:31:17 -0500 Message-ID: <87tvkgw467.fsf__48271.1270721213$1542439868$gmane$org@netris.org> References: <87sh021kw2.fsf@ossau.homelinux.net> <878t1ugyf9.fsf@nicolasgoaziou.fr> <87h8gi1g5g.fsf@ossau.homelinux.net> <871s7mz357.fsf@imladris> <87bm6q1c33.fsf@ossau.homelinux.net> <87o9aq55tl.fsf@ossau.homelinux.net> <87d0r5349t.fsf@netris.org> <87y39t1olc.fsf@netris.org> <878t1t1ety.fsf@ossau.homelinux.net> <875zwx1dcn.fsf@ossau.homelinux.net> <87va4wwra7.fsf@imladris> <87zhu8w55u.fsf@netris.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542439868 21045 195.159.176.226 (17 Nov 2018 07:31:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2018 07:31:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: geiser-users@nongnu.org, Neil Jerram , emacs-orgmode@gnu.org, 33403@debbugs.gnu.org To: "Jose A. Ortega Ruiz" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Nov 17 08:31:04 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNv4J-0005N9-P2 for guile-bugs@m.gmane.org; Sat, 17 Nov 2018 08:31:03 +0100 Original-Received: from localhost ([::1]:48282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNv6Q-0005o3-DB for guile-bugs@m.gmane.org; Sat, 17 Nov 2018 02:33:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNv6K-0005nx-GL for bug-guile@gnu.org; Sat, 17 Nov 2018 02:33:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNv6E-0001vz-72 for bug-guile@gnu.org; Sat, 17 Nov 2018 02:33:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNv6E-0001vn-3c for bug-guile@gnu.org; Sat, 17 Nov 2018 02:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gNv6D-0005QW-SS for bug-guile@gnu.org; Sat, 17 Nov 2018 02:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 17 Nov 2018 07:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33403 X-GNU-PR-Package: guile X-GNU-PR-Keywords: notabug Original-Received: via spool by 33403-submit@debbugs.gnu.org id=B33403.154243992520791 (code B ref 33403); Sat, 17 Nov 2018 07:33:01 +0000 Original-Received: (at 33403) by debbugs.gnu.org; 17 Nov 2018 07:32:05 +0000 Original-Received: from localhost ([127.0.0.1]:57037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNv5I-0005PH-Qy for submit@debbugs.gnu.org; Sat, 17 Nov 2018 02:32:05 -0500 Original-Received: from world.peace.net ([64.112.178.59]:34502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNv5I-0005Op-42 for 33403@debbugs.gnu.org; Sat, 17 Nov 2018 02:32:04 -0500 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gNv5C-0002uT-JF; Sat, 17 Nov 2018 02:31:58 -0500 In-Reply-To: <87zhu8w55u.fsf@netris.org> (Mark H. Weaver's message of "Sat, 17 Nov 2018 02:09:54 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9276 Archived-At: A few more notes: I wrote earlier: > However, before doing this, some warnings are in order: > > When in noncanonical mode, the normal processing of ERASE (usually DEL > or Ctrl-H) and KILL (usually Ctrl-U) characters are disabled, Also the handling of Ctrl-D appears to be disabled in noncanonical mode on my system, although this wasn't clear to me from the docs. > At least in the case of the Guile REPL, one notable side effect of > running in noncanonical mode is that when a list is entered at the REPL, > the 'read' returns as soon as the final close parenthesis is entered. > Nothing after that is read, not even the usual newline. There's an additional wrinkle here: after 'read' returns, Guile tries to read optional whitespace followed by a newline, but only if it's immediately available. See 'flush-to-newline' at the end of module/system/repl/repl.scm in Guile. So, unfortunately there's a race condition here, but typically if you send the newline immediately after the final character of input, it is likely that the newline will be consumed by the REPL reader and not by the code that is subsequently run. Finally, I should note that I consider this race condition suboptimal, and will likely change how Guile behaves in the future, so please don't rely on the behavior I have described above. I will likely change Guile's REPL reader to wait for the final newline in all cases. Mark