GNU bug report logs - #14425
New option python-indent-parens-as-block

Previous Next

Package: emacs;

Reported by: Peter Oliver <bugs <at> mavit.org.uk>

Date: Mon, 20 May 2013 15:39:01 UTC

Severity: wishlist

Done: Peter Oliver <bugs <at> mavit.org.uk>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Peter Oliver <bugs <at> mavit.org.uk>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#14425: closed (New option python-indent-parens-as-block)
Date: Mon, 20 May 2013 15:45:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 20 May 2013 16:44:14 +0100 (BST)
with message-id <alpine.LFD.2.03.1305201640210.3608 <at> froglet.home.mavit.org.uk>
and subject line 
has caused the debbugs.gnu.org bug report #14425,
regarding New option python-indent-parens-as-block
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
14425: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14425
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Peter Oliver <bugs <at> mavit.org.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: New option python-indent-parens-as-block
Date: Mon, 20 May 2013 16:02:01 +0100 (BST)
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


[Message part 3 (message/rfc822, inline)]
From: Peter Oliver <bugs <at> mavit.org.uk>
To: 14425-done <at> debbugs.gnu.org
Date: Mon, 20 May 2013 16:44:14 +0100 (BST)
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


This bug report was last modified 12 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.