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: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: "Fabián E. Gallina" <fabian <at> anue.biz>, 18228 <at> debbugs.gnu.org
Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode
Date: Mon, 11 Aug 2014 22:40:52 -0400
>>> But what should electric-indent do than?
>> No re-indent upon : when it's not 100% sure of the result.
> Which sums up to switch it off.

Not to switch off electric-indent, no (it's enabled globally).

And presumably the : was made to re-indent because in some/many cases
there is only 1 correct indentation (and the code is able to find it).
I don't know if the code is also able to detect when it's correct and
when it's not, but if it is, then we don't need to disable the "reindent
on :" in all cases.


        Stefan




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

Previous Next


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