bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Matthew Woodcraft
Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode
Date: Thu, 28 Aug 2014 20:00:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Andreas Röhler <andreas.roehler@easy-emacs.de> 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-





reply via email to

[Prev in Thread] Current Thread [Next in Thread]