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: Tue, 07 Sep 2021 19:59:06 +0200 Message-ID: <87sfygl11x.fsf__37188.9496965864$1631037633$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> <875yvcmgm2.fsf@gmail.com> <83y288nuoq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33084"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) 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: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 20:00:25 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 1mNfOT-0008PH-BU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 20:00:25 +0200 Original-Received: from localhost ([::1]:33892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNfOS-0002tp-7V for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 14:00:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNfO6-0002sf-B6 for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 14:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNfO5-0005Ty-VQ for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 14:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNfO5-0005L5-TS for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 14:00:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Sep 2021 18:00:01 +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.163103755920425 (code B ref 49822); Tue, 07 Sep 2021 18:00:01 +0000 Original-Received: (at 49822) by debbugs.gnu.org; 7 Sep 2021 17:59:19 +0000 Original-Received: from localhost ([127.0.0.1]:57640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNfNL-0005JH-4z for submit@debbugs.gnu.org; Tue, 07 Sep 2021 13:59:19 -0400 Original-Received: from mail-ej1-f42.google.com ([209.85.218.42]:35524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNfNJ-0005J2-Of for 49822@debbugs.gnu.org; Tue, 07 Sep 2021 13:59:14 -0400 Original-Received: by mail-ej1-f42.google.com with SMTP id i21so21334283ejd.2 for <49822@debbugs.gnu.org>; Tue, 07 Sep 2021 10:59:13 -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=kcHrW/WGr2OsJ5ODSg/ya2BRiyjWnS9NBtoH0p1XbkM=; b=iNRnyT1NDJyIYGmjSVXbRQV5s79xoFSYZi4YKfSXWKn8BDD+IlmXjpcHq1vkA7q5cD MnwRXlm2f8jF3qs3ZDrJ9kephhdurOjGBakxdTa7MaadCLsHoJ1F+tPtFL23Gw+FVlWt e3ll41AkK09wzBbW4TgkT1FdOeXSqoKGo0HOlxS3pvgH+3xlAhV1LPfEaPdpHR86UKrR +sQEaJeYv1TJQKtOnJ+5skRNmup+xPn/d6f8AYefzT1g/4xFnIlOIB4XJKKdIKanX61m rg4Wc6VmWbktx9uLJGIifbrySe6FiW1SEiz9nE4d46wSEefzAJLiS9egcxAuam0a5w1n lhJw== 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=kcHrW/WGr2OsJ5ODSg/ya2BRiyjWnS9NBtoH0p1XbkM=; b=aRSJovA42A/U3KneXd6lxBspyEq8Ly75qLPEre2rJtS0uN4Pg+PI/ugRXHkX0OVevL Bzu3hMTDdboCK4atxdTGN3mfPM2JzbgHAP9CbaO+s2yw2NKiUKgb9di0mWLgQdHx7q4r kFfFDg9AIUgRVbPn7sgJ7aG0TEecaVYeUFjAww4Te6XGCV6urgypAWHNQrcLIy+mWQ+r p10nUpA2tRMhYqlaMg7G6KTZ0BHRXKahGgY1nNj06ZyBZgXiXqgX5axuiIUFCYIltVoA hvubnBh7evmGWmX7Y/1P99j63prr4aSxoByjit/FK2oxT0jLvOOMmLVweQAW0tpE2Nvo YkQQ== X-Gm-Message-State: AOAM531gpZ4AQ02d/OAoR1ij38n8Py1acXL0kLGTwluHpHdJN06UU1Xr rIFPjf4P8g3oS3aZA8Q/mf0= X-Google-Smtp-Source: ABdhPJzDY5r6/ew4knAcuwtEd8sBl0OdqUOY6ciJSFqoMt4htAe54KBGzhsXS/wmIS7q0Gg72vLUEQ== X-Received: by 2002:a17:907:c10:: with SMTP id ga16mr20329955ejc.174.1631037547726; Tue, 07 Sep 2021 10:59:07 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id l24sm416699edq.36.2021.09.07.10.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 10:59:07 -0700 (PDT) In-Reply-To: <83y288nuoq.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Sep 2021 20:48:21 +0300") 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:213727 Archived-At: On Tue, 7 Sep 2021 at 20:48, Eli Zaretskii wrote: >> 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. Yes, I agree this should be a defconst, defined in comint.el or maybe even in C, if there turns out to be a sensible way to query the OS. I'm afraid I've already proved that I am not up to this particular task :-)