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, it separates indexes in a slice, so I
don't think it should change the indentation of the line regardless of the
value of py-e-c-a-p. Toggling that variable isn't helpful because you usually
want electric colons, but only for those which have stanza-opening semantics.
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. colon-active- p' in any case.
>
>Will provide a menu toggling `py-electric-
The point is that not all colons are "indenting colons". In this case, the
colon doesn't introduce a new stanza, it separates indexes in a slice, so I
don't think it should change the indentation of the line regardless of the
value of py-e-c-a-p. Toggling that variable isn't helpful because you usually
want electric colons, but only for those which have stanza-opening semantics.