> If I have the following code and add the colon after the 'else', > python.el's electric-indent moves the 'else' to align with the inner > 'if'. > def foo() > if aaa: > if bbb: > x = 1 > y = 1 > else I've attached a patch to fix this issue: It is caused by incorrect detection of opening blocks.