unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Oliver <bugs@mavit.org.uk>
To: 14425@debbugs.gnu.org
Subject: bug#14425: New option python-indent-parens-as-block
Date: Mon, 20 May 2013 16:02:01 +0100 (BST)	[thread overview]
Message-ID: <alpine.LFD.2.03.1305201556180.3608@froglet.home.mavit.org.uk> (raw)

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





             reply	other threads:[~2013-05-20 15:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20 15:02 Peter Oliver [this message]
2013-05-20 15:44 ` bug#14425: (no subject) Peter Oliver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.03.1305201556180.3608@froglet.home.mavit.org.uk \
    --to=bugs@mavit.org.uk \
    --cc=14425@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).