From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.scheme.geiser Subject: bug#33403: [Geiser-users] Data length limit in Guile/Geiser/Scheme evaluation Date: Fri, 16 Nov 2018 10:44:57 +0000 Message-ID: <878t1t1ety.fsf@ossau.homelinux.net> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542365088 14655 195.159.176.226 (16 Nov 2018 10:44:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2018 10:44:48 +0000 (UTC) Cc: geiser-users@nongnu.org, 33403@debbugs.gnu.org To: Mark H Weaver Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Nov 16 11:44:43 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 1gNbcB-0003i4-9O for guile-bugs@m.gmane.org; Fri, 16 Nov 2018 11:44:43 +0100 Original-Received: from localhost ([::1]:43975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNbeH-0001FL-MQ for guile-bugs@m.gmane.org; Fri, 16 Nov 2018 05:46:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNbdV-0000mm-2P for bug-guile@gnu.org; Fri, 16 Nov 2018 05:46:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNbdR-00038v-VJ for bug-guile@gnu.org; Fri, 16 Nov 2018 05:46:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNbdR-00038k-Rz for bug-guile@gnu.org; Fri, 16 Nov 2018 05:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gNbdR-0002ne-Lb for bug-guile@gnu.org; Fri, 16 Nov 2018 05:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Neil Jerram Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 16 Nov 2018 10:46: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.154236510710695 (code B ref 33403); Fri, 16 Nov 2018 10:46:01 +0000 Original-Received: (at 33403) by debbugs.gnu.org; 16 Nov 2018 10:45:07 +0000 Original-Received: from localhost ([127.0.0.1]:54794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNbcZ-0002mP-1u for submit@debbugs.gnu.org; Fri, 16 Nov 2018 05:45:07 -0500 Original-Received: from ossau.homelinux.net ([18.217.239.99]:53762 helo=ip-172-31-40-63.us-east-2.compute.internal) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNbcX-0002lX-3c for 33403@debbugs.gnu.org; Fri, 16 Nov 2018 05:45:05 -0500 Original-Received: from smaug.ossau.homelinux.net (unknown [213.86.221.35]) by ip-172-31-40-63.us-east-2.compute.internal (Postfix) with ESMTPSA id EBFF7BD856; Fri, 16 Nov 2018 10:44:58 +0000 (UTC) In-Reply-To: <87y39t1olc.fsf@netris.org> 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:9271 gmane.lisp.scheme.geiser:645 Archived-At: Mark H Weaver writes: > This is a documented limitation in Linux's terminal handling when in > canonical mode. See the termios(3) man page, which includes this text: > > Canonical and noncanonical mode > > The setting of the ICANON canon flag in c_lflag determines > whether the terminal is operating in canonical mode (ICANON set) > or noncanonical mode (ICANON unset). By default, ICANON is set. [...] > * The maximum line length is 4096 chars (including the > terminating newline character); lines longer than 4096 chars > are truncated. After 4095 characters, input processing (e.g., > ISIG and ECHO* processing) continues, but any input data after > 4095 characters up to (but not including) any terminating > newline is discarded. This ensures that the terminal can > always receive more input until at least one line can be read. > > Note that last item above. Awesome; thank you Mark. So possibly this limit can be removed, in my Org/Geiser context, by evaluating (system* "stty" "-icanon") when initializing the Geiser-Guile connection. I'll try that. Will the terminal that that 'stty' sees be the same as Guile's stdin? Jao, if that works, I wonder if it should be the default for Geiser? It appears to me that Geiser shouldn't ever need the features of canonical mode. Is that right? Anyway, I'll see first if the stty call is effective. Neil