From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49822: master e32c7d2: Change Python eval to send directly instead of using temporary files Date: Tue, 07 Sep 2021 20:48:21 +0300 Message-ID: <83y288nuoq.fsf__16948.5642154299$1631037005$gmane$org@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19667"; mail-complaints-to="usenet@ciao.gmane.io" Cc: andrewjmoreton@gmail.com, Mark.Barton@disney.com, emacs-devel@gnu.org, schwab@linux-m68k.org, monnier@iro.umontreal.ca, 49822@debbugs.gnu.org, michael.albinus@gmx.de, larsi@gnus.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 19:49:57 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 1mNfEJ-0004s5-Bq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 19:49:55 +0200 Original-Received: from localhost ([::1]:53768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNfEI-00053z-0N for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 13:49:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNfDS-000405-TK for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46065) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNfDS-0006On-Fj for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNfDS-0004xn-Dt for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Sep 2021 17:49: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.163103690819028 (code B ref 49822); Tue, 07 Sep 2021 17:49:02 +0000 Original-Received: (at 49822) by debbugs.gnu.org; 7 Sep 2021 17:48:28 +0000 Original-Received: from localhost ([127.0.0.1]:57611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNfCq-0004wm-Gz for submit@debbugs.gnu.org; Tue, 07 Sep 2021 13:48:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNfCo-0004wR-89 for 49822@debbugs.gnu.org; Tue, 07 Sep 2021 13:48:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59106) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNfCh-0005qz-G0; Tue, 07 Sep 2021 13:48:15 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4512 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNfCg-0003Fi-V6; Tue, 07 Sep 2021 13:48:15 -0400 In-Reply-To: <875yvcmgm2.fsf@gmail.com> (message from Augusto Stoffel on Tue, 07 Sep 2021 19:37:41 +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:213723 Archived-At: > From: Augusto Stoffel > Date: Tue, 07 Sep 2021 19:37:41 +0200 > Cc: Andy Moreton , emacs-devel@gnu.org, > Andreas Schwab , > Stefan Monnier , 49822@debbugs.gnu.org, > Michael Albinus , Lars Ingebrigtsen > > Okay then. Since there seem to be no better alternatives, I have > attached a new patch reducing the limit to a hard-coded 1024 bytes. If > some day someone adds a variable specifying a more precise limit, then > we can change this. I thought the conclusion was that we do know the limits, but they are different on different OSes? If so, why not use the correct limit for each OS, instead of using the most strict limit? The underlying OS is available in system-type. > - (if (<= (string-bytes code) 4096) > + (if (<= (string-bytes code) 1024) In any case, IMO this should be a defconst with a suitable doc string, so that we'd have this stuff documented for posterity. Thanks.