GNU bug report logs - #17658
Python mode has odd indentation behavior

Previous Next

Package: emacs;

Reported by: Adam Connor <adamc55 <at> gmail.com>

Date: Sun, 1 Jun 2014 02:25:02 UTC

Severity: normal

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: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 17658 <at> debbugs.gnu.org
Subject: bug#17658: Python mode has odd indentation behavior
Date: Mon, 02 Jun 2014 08:19:00 +0200
On 01.06.2014 23:18, Stefan Monnier wrote:
>> Indents to column 23, which seems correct.
>
> It shouldn't re-indent at all.
>
>> BTW setting `electric-indent-mode' to nil would also be an alternative
>>   to avoid it.
>
> Makes no difference,

Did you try it?

 it's not done by electric-indent-mode.
>
>
>          Stefan
>

AFAIU it's a feature of electric-indent-mode

The chars, which trigger an indent, may differ. In this case a comma triggers it.

The real bug here IMHO is `electric-indent-mode' on by default - should be off.


Andreas






This bug report was last modified 11 years and 49 days ago.

Previous Next


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