From unknown Fri Sep 05 15:34:50 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#14425 <14425@debbugs.gnu.org> To: bug#14425 <14425@debbugs.gnu.org> Subject: Status: New option python-indent-parens-as-block Reply-To: bug#14425 <14425@debbugs.gnu.org> Date: Fri, 05 Sep 2025 22:34:50 +0000 retitle 14425 New option python-indent-parens-as-block reassign 14425 emacs submitter 14425 Peter Oliver severity 14425 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 20 11:39:00 2013 Received: (at submit) by debbugs.gnu.org; 20 May 2013 15:39:00 +0000 Received: from localhost ([127.0.0.1]:53135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeSAs-0005XV-Od for submit@debbugs.gnu.org; Mon, 20 May 2013 11:39:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44983) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeRbz-0003pG-I4 for submit@debbugs.gnu.org; Mon, 20 May 2013 11:02:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeRbK-0008PY-5N for submit@debbugs.gnu.org; Mon, 20 May 2013 11:02:17 -0400 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_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:35685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeRbK-0008PT-1t for submit@debbugs.gnu.org; Mon, 20 May 2013 11:02:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeRbH-00021x-27 for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 11:02:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeRbD-0008Np-EJ for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 11:02:11 -0400 Received: from volta.triv.org.uk ([85.158.43.194]:56864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeRbD-0008NR-8f for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 11:02:07 -0400 Received: from froglet.home.mavit.org.uk (unknown [IPv6:::1]) by volta.triv.org.uk (Postfix) with ESMTP id D10C444003 for ; Mon, 20 May 2013 16:02:04 +0100 (BST) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.14.7/8.14.7) with ESMTP id r4KF22NQ007210 for ; Mon, 20 May 2013 16:02:02 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.14.7/8.14.6/Submit) with ESMTP id r4KF21Vs007207 for ; Mon, 20 May 2013 16:02:02 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Mon, 20 May 2013 16:02:01 +0100 (BST) From: Peter Oliver To: bug-gnu-emacs@gnu.org Subject: New option python-indent-parens-as-block Message-ID: User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 20 May 2013 11:38:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) The Python style guide, http://www.python.org/dev/peps/pep-0008/, says: > The closing brace/bracket/parenthesis on multi-line constructs may > either line up under the last item of the list, as in: > > my_list = [ > 1, 2, 3, > 4, 5, 6, > ] > result = some_function_that_takes_arguments( > 'a', 'b', 'c', > 'd', 'e', 'f', > ) > > or it may be lined up under the first character of the line that > starts the multi-line construct, as in: > > my_list = [ > 1, 2, 3, > 4, 5, 6, > ] > result = some_function_that_takes_arguments( > 'a', 'b', 'c', > 'd', 'e', 'f', > ) At present, Emacs uses the former style. I'd prefer there to be an option to enable use of the latter style. I am preparing a patch. -- Peter Oliver From debbugs-submit-bounces@debbugs.gnu.org Mon May 20 11:44:55 2013 Received: (at 14425-done) by debbugs.gnu.org; 20 May 2013 15:44:55 +0000 Received: from localhost ([127.0.0.1]:53149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeSGc-0005qi-Pq for submit@debbugs.gnu.org; Mon, 20 May 2013 11:44:54 -0400 Received: from volta.triv.org.uk ([85.158.43.194]:45999) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeSGb-0005qc-AV for 14425-done@debbugs.gnu.org; Mon, 20 May 2013 11:44:53 -0400 Received: from froglet.home.mavit.org.uk (unknown [IPv6:::1]) by volta.triv.org.uk (Postfix) with ESMTP id D32B944003 for <14425-done@debbugs.gnu.org>; Mon, 20 May 2013 16:44:18 +0100 (BST) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.14.7/8.14.7) with ESMTP id r4KFiFgu007775 for <14425-done@debbugs.gnu.org>; Mon, 20 May 2013 16:44:15 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.14.7/8.14.6/Submit) with ESMTP id r4KFiEJf007772 for <14425-done@debbugs.gnu.org>; Mon, 20 May 2013 16:44:14 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Mon, 20 May 2013 16:44:14 +0100 (BST) From: Peter Oliver To: 14425-done@debbugs.gnu.org Message-ID: User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: My apologies. I'm running Emacs 24.2, but I see that the changes to python-mode in 24.3 mean that my preferred behaviour is now what's used. Closing. -- Peter Oliver [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% [score: 0.3105] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: 14425-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) My apologies. I'm running Emacs 24.2, but I see that the changes to python-mode in 24.3 mean that my preferred behaviour is now what's used. Closing. -- Peter Oliver From unknown Fri Sep 05 15:34:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 18 Jun 2013 11:24:02 +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