Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode

From: Matthew Woodcraft <[email-masked]>
Date: Thu, 28 Aug 2014 20:00:55 +0100

Andreas Röhler <[email-masked]> writes:
> If inside a nested block, there is no way for Emacs to determine whereto such
> "else" should belong.
> I.o.w, don't see a difference between these both cases.

What emacs 24.3 does, in the common case, is dedent the 'else:' one step.

This is correct most of the time, and in the cases where it isn't
correct it moves the line one step closer to where it will end up.

In contrast, the behaviour in the current 24.4-pretest for 'def:' and
'class:' is wrong nearly all the time, and when it's wrong it moves the
line away from where it will end up rather than towards it.

-M-