From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#49822: master e32c7d2: Change Python eval to send directly instead of using temporary files Date: Mon, 06 Sep 2021 18:08:43 +0200 Message-ID: <87lf49wut0.fsf__3283.42507580004$1630944666$gmane$org@gmail.com> References: <20210903122828.16890.65271@vcs0.savannah.gnu.org> <20210903122829.EAAC220B71@vcs0.savannah.gnu.org> <87r1e4eklw.fsf@gmail.com> <87v93fnfmm.fsf@igel.home> <87lf4aooge.fsf@gmail.com> <878s0a409g.fsf@gmx.de> <87ilzef65i.fsf@igel.home> <878s0aeyna.fsf@gmx.de> <87r1e1ex7z.fsf@igel.home> <874kaxgbgs.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19865"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49822@debbugs.gnu.org, Lars Ingebrigtsen , Andreas Schwab , Stefan Monnier , emacs-devel@gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 06 18:10:58 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNHCx-0004sg-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Sep 2021 18:10:55 +0200 Original-Received: from localhost ([::1]:33166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNHCw-0000aY-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Sep 2021 12:10:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNHB8-0006nv-VH for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2021 12:09:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNHB8-0007ZS-Nx for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2021 12:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNHB8-0007wf-JK for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2021 12:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Sep 2021 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49822-submit@debbugs.gnu.org id=B49822.163094453730516 (code B ref 49822); Mon, 06 Sep 2021 16:09:02 +0000 Original-Received: (at 49822) by debbugs.gnu.org; 6 Sep 2021 16:08:57 +0000 Original-Received: from localhost ([127.0.0.1]:54286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNHB3-0007w6-1F for submit@debbugs.gnu.org; Mon, 06 Sep 2021 12:08:57 -0400 Original-Received: from mail-ej1-f51.google.com ([209.85.218.51]:36367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNHAw-0007vj-Tt for 49822@debbugs.gnu.org; Mon, 06 Sep 2021 12:08:55 -0400 Original-Received: by mail-ej1-f51.google.com with SMTP id bt14so14406206ejb.3 for <49822@debbugs.gnu.org>; Mon, 06 Sep 2021 09:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=qb2zpOFH322bxzLdOR8HoPi2ymosraMmBWfdiB2gGVc=; b=dkEQdsWQlwGkW2YhNkqz/zdKE2aqekAABY7C5sWqla6WURHPmOik8uA20ko+W4JSYH XX0oHZjfqKxT7SXX3kDvRCLL4CsaHrn1iaebSRCLlupdRRSsVCOtXFX3LDNtXVze0EpD jWnIrU5dvwiGzteZPU/ddbq613lHCTMMHY2zNpjUOX70OTQvnoHVjN6CnOKgbaW8zf00 169oaMl6iNz5iHBd87k1BG2hDXC5r9KSu/2HnzXBJCST0T5TWz5SI3UhaARu3w0Vbx0y 0C5Ox+XQMyrZS9XwOGqbdvzuM79wlzeQMMsNqJeNiyqOS1QCtzBFOf1DqubeImIXAViS OjMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=qb2zpOFH322bxzLdOR8HoPi2ymosraMmBWfdiB2gGVc=; b=Gl81pB8xxStMGQM0EDSshLe453e4Ua+0aMgdLB2tKllo8MWGHqDBsaTm2JP8iFoOO+ y+/nToa9jJUy+Ugk1/nVwbwZ2sWWtu+Yhh/82DomRoXcoJrt+sUScNmtu8nhyoP6Hbce mWW1vFI3Dyylq4zsmX1rhDn0sqZIykW/GgC632HXoZW+0PFjx2TxXqA5GbRBMRO9hRrt or+hEsWJSymiMlSa3G95Apxs67xsRgh9Ie64ElyFv2QUl6wKuvOlSddzJ7hSjKifW+cL CMSPKsaNiTVOXH+OG0hDmA/jsoPzMhjR603M1Io9ZZuUuE7/XngsyTHpdSot8wZUPfgE pOZQ== X-Gm-Message-State: AOAM5310sulYr/i/dMkulWjCn7Y64O0i6e9Aahpqe/QaBCDkz7ZQhHtx KdmsF65imUgr/Dxwi0pxhOI= X-Google-Smtp-Source: ABdhPJyje0Vol9NUfVQ7LWEx3duW4LGwcxSBwKDxrZ5yh2SaYF0aaZhzWK6W3zvaslQ4CPu7d4jphQ== X-Received: by 2002:a17:907:1c1f:: with SMTP id nc31mr14052901ejc.371.1630944524875; Mon, 06 Sep 2021 09:08:44 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id dy7sm4965868edb.38.2021.09.06.09.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 09:08:44 -0700 (PDT) In-Reply-To: <874kaxgbgs.fsf@gmx.de> (Michael Albinus's message of "Mon, 06 Sep 2021 14:00:51 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213613 Archived-At: On Mon, 6 Sep 2021 at 14:00, Michael Albinus wrote: > Andreas Schwab writes: > >> Neither has PIPE_BUF. > > Great that you always say what's not working. Perhaps you have a better > answer to Augusto? > >> Andreas. > > Best regards, Michael. Thanks for the ideas. If there's no simple and platform-independent way to obtain the line length limit in a PTY, then I think there's no reason to attempt anything fancy in python.el (or any derived comint mode, for that matter). So the options seem to be: either hard-code a limit of 1024 chars, or create a defcustom with a platform-dependent default. But such a defcustom should probably be part of comint.el, and should be added by someone who (unlike me) actually understands this stuff. Working around a limit of less than 1024 characters is too awkward, so I hope this is a safe assumption. The juggling of temp files that existed in python.el for many years already required lines of ~350 chars, depending on how the OS names temp files. Sorry for introducing a bug in master. I think I got it fixed here, and I'll submit the patch when I'm confident about it.