GNU bug report logs - #18228
24.4.50; electrict-indent-mode bad indentation in python-mode

Previous Next

Package: emacs;

Reported by: Jorgen Schaefer <forcer <at> forcix.cx>

Date: Sat, 9 Aug 2014 10:02:02 UTC

Severity: minor

Found in version 24.3.93

Fixed in version 24.4.50

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Matthew Woodcraft <matthew <at> woodcraft.me.uk>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Fabián E. Gallina <fabian <at> anue.biz>, Stefan Monnier <monnier <at> iro.umontreal.ca>, 18228 <at> debbugs.gnu.org
Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode
Date: Thu, 28 Aug 2014 20:00:55 +0100
Andreas Röhler <andreas.roehler <at> 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-




This bug report was last modified 10 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.