From unknown Fri Sep 05 15:37:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14425: New option python-indent-parens-as-block Resent-From: Peter Oliver Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 May 2013 15:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14425 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 14425@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136906434021309 (code B ref -1); Mon, 20 May 2013 15:39:01 +0000 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 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-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 unknown Fri Sep 05 15:37:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Peter Oliver Subject: bug#14425: closed () Message-ID: References: X-Gnu-PR-Message: they-closed 14425 X-Gnu-PR-Package: emacs Reply-To: 14425@debbugs.gnu.org Date: Mon, 20 May 2013 15:45:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1369064702-22518-1" This is a multi-part message in MIME format... ------------=_1369064702-22518-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #14425: New option python-indent-parens-as-block which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 14425@debbugs.gnu.org. --=20 14425: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14425 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1369064702-22518-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1369064702-22518-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1369064702-22518-1--