[Python-mode] bug lp:328842, flexible-indentation of multiline assignements

Andreas Röhler andreas.roehler at online.de
Fri Mar 25 15:01:28 CET 2011


Am 25.03.2011 14:35, schrieb Andreas Röhler:
> Am 25.03.2011 14:07, schrieb skip at pobox.com:
>>
>> Andreas> What about indenting it to the end of first element of previous
>> Andreas> line?
>>
>> That is precisely the problem. That's what it does today, and if the
>> lhs of
>> the assignment is a complex expression, the continuation is indented
>> way too
>> far. I would much prefer just to simply indent by the normal block
>> indent.
>>
>> Skip
>>
>
> Hi Skip,
>
> I'll introduce a defcustom for that
>
> just set
>
> `py-multiline-indent-to-first-element'
>

Sorry,

that's my mistake.

Thats will be boolean, as it's name says.

When indenting to common indent-offset,

use the defcustom  than created for that purpose.
`py-multiline-indent-to-first-element' must be nil than,

as the indent of the first element shouldn't matter.


Andreas





More information about the Python-mode mailing list