Comment 3 for bug 1207405

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1207405] Re: Non-indenting colon

Am 12.08.2013 16:43, schrieb Barry Warsaw:
> On Aug 07, 2013, at 06:59 PM, Andreas Roehler wrote:
>
>> Hmm, AFAIU `print' does not close the `for'-loop, so such assignment
>> seems possible at that place(?)
>
> Correct, but that's not the point.
>
>> Electric-colon always will choose the rightmost thinkable.
>>
>> Will provide a menu toggling `py-electric-colon-active-p' in any case.
>
> The point is that not all colons are "indenting colons". In this case, the
> colon doesn't introduce a new stanza,

Okay, may implement that rule:

electric indent colon only when opening a block.