From unknown Tue Aug 19 07:13:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19695 <19695@debbugs.gnu.org> To: bug#19695 <19695@debbugs.gnu.org> Subject: Status: 24.4; python.el: [RFE] add customization option for send-main Reply-To: bug#19695 <19695@debbugs.gnu.org> Date: Tue, 19 Aug 2025 14:13:57 +0000 retitle 19695 24.4; python.el: [RFE] add customization option for send-main= =20 reassign 19695 emacs submitter 19695 Carlos Pita severity 19695 wishlist tag 19695 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 26 12:19:03 2015 Received: (at submit) by debbugs.gnu.org; 26 Jan 2015 17:19:03 +0000 Received: from localhost ([127.0.0.1]:57270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFnJX-0000i3-80 for submit@debbugs.gnu.org; Mon, 26 Jan 2015 12:19:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46539) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFnJV-0000hW-Fr for submit@debbugs.gnu.org; Mon, 26 Jan 2015 12:19:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFnJP-0003sl-CA for submit@debbugs.gnu.org; Mon, 26 Jan 2015 12:18:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFnJP-0003sh-9S for submit@debbugs.gnu.org; Mon, 26 Jan 2015 12:18:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFnJO-0008Qt-3w for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2015 12:18:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFnJI-0003qZ-7z for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2015 12:18:53 -0500 Received: from mail-qa0-x233.google.com ([2607:f8b0:400d:c00::233]:45552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFnJI-0003qV-3m for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2015 12:18:48 -0500 Received: by mail-qa0-f51.google.com with SMTP id f12so7664858qad.10 for ; Mon, 26 Jan 2015 09:18:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type; bh=9lTCD+y8SQp9HutA/gHseeO5ppnfQAM7tp6b43R4n5c=; b=WWqeTn4oUIF4BbWhy6jj9uKkgD/Ne6z3CokmlKDZtzneEUzdL5k9qQOzHi+KtY1/sC UMxm2MsoW83H8G9/cUuAS55ntm0SqK8YCdTjGbMIdVN3DzjGOpbdXG8glLuVQoKQoBa9 gGrLt76V6SxwsEuyQDXFxuv75u+fNUs7OuuRWANf7HD22zAjWmUZig1BolkZvO/1VSc0 z2jZ1bvAT8+KHrE3iMo84qjYNmFfqoAktIlGZ4gvBojRfzRW9QtzoANs5ZPwTn0aDXg0 ZRUWc439heyM3+ip0O64lv5UAi4DfdVeY8Y/61DIx2BM15aBVbAdC628R7QYAw6Z9L9O gMSg== X-Received: by 10.140.35.114 with SMTP id m105mr40754201qgm.79.1422292727809; Mon, 26 Jan 2015 09:18:47 -0800 (PST) Received: from carlos-jampp ([190.18.155.203]) by mx.google.com with ESMTPSA id p69sm10491527qga.27.2015.01.26.09.18.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jan 2015 09:18:46 -0800 (PST) From: Carlos Pita To: bug-gnu-emacs@gnu.org Subject: 24.4; python.el: [RFE] add customization option for send-main Date: Mon, 26 Jan 2015 14:18:38 -0300 Message-ID: <87bnllqx3l.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: galli.87@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The send buffer behavior doesn't quite follows the principle of least surprise as currently implemented: one would expect that the if-name-main part will be executed the same everything else is. While I agree this is a matter of taste, I think it would be nice to add a global customization option for people that prefer the standard "execute all" behavior as a default. Cheers -- Carlos From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 29 23:23:34 2015 Received: (at 19695-done) by debbugs.gnu.org; 30 Jan 2015 04:23:34 +0000 Received: from localhost ([127.0.0.1]:57692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH37G-0002lr-Gz for submit@debbugs.gnu.org; Thu, 29 Jan 2015 23:23:34 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:45149 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH37E-0002lk-No for 19695-done@debbugs.gnu.org; Thu, 29 Jan 2015 23:23:33 -0500 Received: from [190.246.172.180] (port=50043 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YH37E-0005md-2Q for 19695-done@debbugs.gnu.org; Thu, 29 Jan 2015 23:23:32 -0500 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 19695-done@debbugs.gnu.org Subject: 24.4; python.el: [RFE] add customization option for send-main Date: Fri, 30 Jan 2015 01:23:30 -0300 Message-ID: <87sieshp6l.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19695-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Carlos, I agree that the least surprising thing to do would be to send the "if-name-main" block, but in the other hand this block generally contains the execution code for the module and when working on it you generally don't want to send that to the shell (one of the reasons may be safety). So I think the current way of enabling this by just adding a prefix argument to `python-shell-send*` commands is better than adding yet another customization. Cheers, Fabi=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 29 23:24:32 2015 Received: (at control) by debbugs.gnu.org; 30 Jan 2015 04:24:32 +0000 Received: from localhost ([127.0.0.1]:57698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH38B-0002np-UV for submit@debbugs.gnu.org; Thu, 29 Jan 2015 23:24:32 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:45166 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YH38A-0002ng-0A for control@debbugs.gnu.org; Thu, 29 Jan 2015 23:24:30 -0500 Received: from [190.246.172.180] (port=50072 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YH389-0006Eu-7Y for control@debbugs.gnu.org; Thu, 29 Jan 2015 23:24:29 -0500 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: control@debbugs.gnu.org Subject: Date: Fri, 30 Jan 2015 01:24:24 -0300 Message-ID: <871tmc99qf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) tags 19695 + notabug quit From unknown Tue Aug 19 07:13:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 27 Feb 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator