From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Oliver Newsgroups: gmane.emacs.bugs Subject: bug#14425: New option python-indent-parens-as-block Date: Mon, 20 May 2013 16:02:01 +0100 (BST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1369068501 30697 80.91.229.3 (20 May 2013 16:48:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 May 2013 16:48:21 +0000 (UTC) To: 14425@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 20 18:48:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UeTFy-0001hd-Lo for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 May 2013 18:48:18 +0200 Original-Received: from localhost ([::1]:56244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeTFx-0001Jk-Sk for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 May 2013 12:48:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeTFm-00016q-D6 for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 12:48:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeTFi-0003PZ-37 for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 12:48:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeSAO-0005Ye-Vu for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 11:38:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UeSAw-0005Y2-1v for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 11:39:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136906434021309 (code B ref -1); Mon, 20 May 2013 15:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 May 2013 15:39:00 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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 Original-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 User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74420 Archived-At: 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