* bug#14425: New option python-indent-parens-as-block
@ 2013-05-20 15:02 Peter Oliver
2013-05-20 15:44 ` bug#14425: (no subject) Peter Oliver
0 siblings, 1 reply; 2+ messages in thread
From: Peter Oliver @ 2013-05-20 15:02 UTC (permalink / raw)
To: 14425
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#14425: (no subject)
2013-05-20 15:02 bug#14425: New option python-indent-parens-as-block Peter Oliver
@ 2013-05-20 15:44 ` Peter Oliver
0 siblings, 0 replies; 2+ messages in thread
From: Peter Oliver @ 2013-05-20 15:44 UTC (permalink / raw)
To: 14425-done
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-20 15:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-20 15:02 bug#14425: New option python-indent-parens-as-block Peter Oliver
2013-05-20 15:44 ` bug#14425: (no subject) Peter Oliver
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).