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


Message #29 received at 18228 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Matthew Woodcraft <matthew <at> woodcraft.me.uk>, 
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: "Fabián E. Gallina" <fabian <at> anue.biz>,
 18228 <at> debbugs.gnu.org
Subject: Re: bug#18228: 24.4.50; electrict-indent-mode bad indentation in
 python-mode
Date: Thu, 28 Aug 2014 08:05:29 +0200
On 27.08.2014 21:34, Matthew Woodcraft wrote:
>
> In emacs 24.3, colon was electric by default (eg for 'else:'), but didn't
> affect 'def' lines like Jorgen's example (which I am also finding very
> annoying).
>
> So I think this is a regression (I'm on the emacs-24 branch).
>
> -M-
>

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.




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.