From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.lisp.guile.bugs Subject: bug#33403: [Geiser-users] bug#33403: Data length limit in Guile/Geiser/Scheme evaluation Date: Fri, 16 Nov 2018 23:12:32 +0000 Message-ID: <87va4wwra7.fsf__17264.7625593983$1542409869$gmane$org@imladris> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542409869 31026 195.159.176.226 (16 Nov 2018 23:11:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2018 23:11:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) Cc: geiser-users@nongnu.org, emacs-orgmode@gnu.org, 33403@debbugs.gnu.org To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Nov 17 00:11: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 1gNnGR-0007wT-Lx for guile-bugs@m.gmane.org; Sat, 17 Nov 2018 00:11:03 +0100 Original-Received: from localhost ([::1]:47370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNnIY-0000pb-5G for guile-bugs@m.gmane.org; Fri, 16 Nov 2018 18:13:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNnIQ-0000oW-OC for bug-guile@gnu.org; Fri, 16 Nov 2018 18:13:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNnIN-00071u-28 for bug-guile@gnu.org; Fri, 16 Nov 2018 18:13:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52662) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNnIM-00070q-4V for bug-guile@gnu.org; Fri, 16 Nov 2018 18:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gNnIL-000265-Q1 for bug-guile@gnu.org; Fri, 16 Nov 2018 18:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jose A. Ortega Ruiz" Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 16 Nov 2018 23:13: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.15424099658038 (code B ref 33403); Fri, 16 Nov 2018 23:13:01 +0000 Original-Received: (at 33403) by debbugs.gnu.org; 16 Nov 2018 23:12:45 +0000 Original-Received: from localhost ([127.0.0.1]:56920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNnI4-00025Z-No for submit@debbugs.gnu.org; Fri, 16 Nov 2018 18:12:45 -0500 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:54178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNnI1-00025L-2R for 33403@debbugs.gnu.org; Fri, 16 Nov 2018 18:12:41 -0500 Original-Received: by mail-wm1-f44.google.com with SMTP id f10-v6so127549wme.3 for <33403@debbugs.gnu.org>; Fri, 16 Nov 2018 15:12:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=5xKWgjVIYhs1y73sA8E3W9k91FE/+Q2c/opoTSUPcJ0=; b=Nq9T7lE+pQHQ7T9iNgj/rjN61EtxgKGUZbFwD8CO4ID51UVVwE2HkJdPwMB3Zq7ifV 3ekrsftBIyeSyTu54CsGQEhQUj3h7YHmng1OINalLtLeU96iG4ubGkAiWBS8KzkuxLZg ERXWyf1X4j3jUi82QkIItsRU21xbfQx+PDoJzmOGP8SPvwrlCc2NBPZ7llFkgDkW4v0r JoEm12XMezWGMTK1FOTrZpmmNUiknT/GC/mbozY35Q6d4BPV/7TvKIEO6jPSDRy4hzOT CndD/YvDjokS/ZBbluTozTGAdRsAglB01FmmpMzjHhk4NQYb9SAky31WQRJ+q0SsM4lH v/mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=5xKWgjVIYhs1y73sA8E3W9k91FE/+Q2c/opoTSUPcJ0=; b=kUDuleVXX0ITd1JFdjBqgdy5ieJ0VAhwZhOZmImZui3s5FFRCcmd4d8VTARDuMNTEG ONkYuF/tVtTs3nofysgI7Aq+zPT5ycE5HVM23EIdbq9v3itokYc7P8ZoHBVIpQSWMuQg okugCnnhY9Sp17CyCD6D76kcO6A0dI/pPA3DoVETOdJQugJiG2jt5S7y+h0GmaRZIh7Q 4i3gu0AVv7SYJdoJK1+irhSjbJvHVkUplmotnsZMwE8Q6Ni6lmzNlQq2QaIn0dhJWua1 UkB3FVOb3CQdTfPf7UkwY9jHu/faz/fybCIO8Wf6RWF8mZxbBrQhj1h1YHsmMMt7I86+ P4kw== X-Gm-Message-State: AGRZ1gIrhP/MJTFLw2hVX4MT8UFdCQEVY7qCCFGr2cUA0bzcrFjCg1zR i88LVm6kax1L/rGlKie3BLIF8Kl8uzI= X-Google-Smtp-Source: AJdET5e4T7yaAH67iMpxDcEza9auUnKEGCr8vxcL8zqx0kG8OcbYwJJ4bTomHaT9cOaxkX5WV3mxQQ== X-Received: by 2002:a1c:c64e:: with SMTP id w75mr149456wmf.46.1542409954764; Fri, 16 Nov 2018 15:12:34 -0800 (PST) Original-Received: from imladris.local (cpc103058-sgyl39-2-0-cust254.18-2.cable.virginm.net. [94.173.216.255]) by smtp.gmail.com with ESMTPSA id b66-v6sm17974252wmb.21.2018.11.16.15.12.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Nov 2018 15:12:33 -0800 (PST) Original-Received: from imladris (localhost [127.0.0.1]) by imladris.local (Postfix) with ESMTPS id 87ADB32007D; Sat, 17 Nov 2018 00:12:32 +0100 (CET) In-Reply-To: <875zwx1dcn.fsf@ossau.homelinux.net> (Neil Jerram's message of "Fri, 16 Nov 2018 11:16:56 +0000") X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: 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:9274 Archived-At: On Fri, Nov 16 2018, Neil Jerram wrote: > Neil Jerram writes: > >> 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. > > Yes, with this in my ~/.guile-geiser - > > (system* "stty" "-icanon") > > - I can do evaluations past the 4K line length limit, and the Org-driven > problem that I first reported [1] has disappeared. Ah, system* is a scheme call! So yeah, maybe we could add that call to Geiser's guile initialization... i don't really see how that would cause any problem elsewhere. > Thanks to Nicolas, Jao and Mark for your help in understanding this. And thanks to Nicolas, Mark and you for yours :) Cheers, jao -- The vast majority of human beings dislike and even dread all notions with which they are not familiar. Hence it comes about that at their first appearance innovators have always been derided as fools and madmen. -Aldous Huxley, novelist (1894-1963)