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,gmane.emacs.devel Subject: bug#49822: master e32c7d2: Change Python eval to send directly instead of using temporary files Date: Wed, 08 Sep 2021 07:09:20 +0200 Message-ID: <87zgsnd56n.fsf@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> <875yvcmgm2.fsf@gmail.com> <66D968C2-9F92-4950-9647-C8DCD77A2EE0@disney.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10003"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Andy Moreton , "emacs-devel@gnu.org" , Andreas Schwab , Stefan Monnier , "49822@debbugs.gnu.org" <49822@debbugs.gnu.org>, Michael Albinus , Lars Ingebrigtsen To: "Barton, Mark" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 08 07:10:15 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 1mNpqh-0002Ry-CV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 07:10:15 +0200 Original-Received: from localhost ([::1]:36500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNpqf-0006bT-TS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 01:10:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNpqV-0006ZD-2O for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 01:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNpqU-0008DE-Nz for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 01:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNpqU-0007eq-FN for bug-gnu-emacs@gnu.org; Wed, 08 Sep 2021 01:10: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: Wed, 08 Sep 2021 05:10: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.163107777029381 (code B ref 49822); Wed, 08 Sep 2021 05:10:02 +0000 Original-Received: (at 49822) by debbugs.gnu.org; 8 Sep 2021 05:09:30 +0000 Original-Received: from localhost ([127.0.0.1]:58199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNppx-0007dp-Up for submit@debbugs.gnu.org; Wed, 08 Sep 2021 01:09:30 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:36738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNppw-0007dc-2Y for 49822@debbugs.gnu.org; Wed, 08 Sep 2021 01:09:28 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id g16so1274654wrb.3 for <49822@debbugs.gnu.org>; Tue, 07 Sep 2021 22:09:28 -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:content-transfer-encoding; bh=VHsj8UQ4mOVAFOFZjBYP3nFbDzC0mBPbd+goEUCY5uA=; b=eFGqp7/Nh0LGfgPCuhQ5qUBA3ILzYEEEICmZwTY9HNLLjTmhddEbhIEa7PqaqKCsWn JDk3IkvzIO0pWOyPG5IliJitu17QgcIQto3T0Iy3m+ducnxEtT3HjU1tc2jnsRGTUrdA RrcouJ0Z6ReLIcj7pyRtpO6XJRVxR6y3BNtgq1NZS4KwTnXPdy/3P/LYNFhpooWhZ4bh O5IfkAjIaqgSWv/w/DnbUTpTcVzojTREuQ62ZB0yCbIKD9d694rOgj5VknIWahtWqwRP VSP0nbez5CINcwVCiY3hP1nOJYAvDggh6a/3uQOcX9D6K8jyfodxbLgAK6iAifOuD63z 8Kbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=VHsj8UQ4mOVAFOFZjBYP3nFbDzC0mBPbd+goEUCY5uA=; b=oWuZEZ5gQ6fr9rjb/QwSkFqN0RqL1apo0Dvj539PtHeS/Y0XqdqM+XobwCiKs+FHhV 3WfggSxxMCs9plgz4n4rUhWHkVlrE6tq8uX+autSizeCnV93M182LbvbkCkdLu5x8MpE WKBW41Y/i1c4tbPQed/+yc/9R/cwU4pL+L9l8qJArm9EbLlaSpr8SNbGZ7ZHN0/pX/59 cQH7Qocv6R6auONhXwjYlnCyxixJV8VxfEZBvFZXwo5IVucYikUDovapnEwdQkDLbiwV kSQ8BgP6BMslmL0kEOslLmPUmUp6kazoE93rNrzedicRTTtLXVDk2M5LstYTIh6z16ut m4Lw== X-Gm-Message-State: AOAM532Od+8SKPsHUvh6VvxUKOmcck4Sac2E9a2Ntv50RVCGSqasJirP 6kXEIJum35cxhFpjurfsBNI= X-Google-Smtp-Source: ABdhPJxB1N9AzSBF9TKxtd0W5SSmyQ85n1B++dfNc+rILm1T3sgK4dknBObnj2TvHU8O07fLLVRUHw== X-Received: by 2002:adf:eb02:: with SMTP id s2mr1802228wrn.294.1631077762252; Tue, 07 Sep 2021 22:09:22 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id d8sm979407wrv.20.2021.09.07.22.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 22:09:21 -0700 (PDT) In-Reply-To: <66D968C2-9F92-4950-9647-C8DCD77A2EE0@disney.com> (Mark Barton's message of "Wed, 8 Sep 2021 03:17:27 +0000") 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:213769 gmane.emacs.devel:274310 Archived-At: On Wed, 8 Sep 2021 at 03:17, "Barton, Mark" wrote: > I tested the patch, 0001-Reduce-limit-of-line-length-sent-to-the-Python-i= nfer.patch, on > macOS 11.5.1 and although my minimal example runs, my original document u= sing org babel > session with multiple python blocks is failing with the message in the mi= ni buffer =E2=80=9CInline error: > multiline result cannot be used=E2=80=9D. I can try some lower value than= 1024 and report back, but > below is what I saw with attempting to use the debugger to see what the s= tring looks like in my > use case. This looks like a different matter, and the patch below might solve it. But I think it would make sense to open a new bug for this point, to we get a chance of getting through with the TTY line limit discussion in this thread. diff --git a/lisp/org/ob-python.el b/lisp/org/ob-python.el index 7911205d08..e3714964b7 100644 --- a/lisp/org/ob-python.el +++ b/lisp/org/ob-python.el @@ -352,7 +352,7 @@ org-babel-python--send-string org-babel-python-eoe-indicator string-buffer)) (accept-process-output (get-buffer-process (current-buffer)))) - (org-babel-chomp (substring string-buffer 0 (match-beginning 0)))))) + (org-babel-chomp (substring string-buffer 1 (match-beginning 0)))))) =20 (defun org-babel-python-evaluate-session (session body &optional result-type result-params)