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

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

bug#15163: 24.3; python-mode, electric colon bug


From: Andreas Röhler
Subject: bug#15163: 24.3; python-mode, electric colon bug
Date: Fri, 23 Aug 2013 08:35:49 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

Am 22.08.2013 18:17, schrieb Alexis Roda:
Electric colon don't indent when used in conjunction with
newline-and-indent in some nested statements.

To reproduce:

emacs -Q /tmp/bugtest.py

and type:

  i f SPC a : C-j i f SPC b : C-j p a s s C-j e l s e : C-j p a s s C-j e l s e 
:

you'll get:

if a:
     if b:
         pass
     else:
         pass
         else:

The last 'else' isn't indented properly.



IMO 'else' shouldn't be indented at all here, as an "if" can't have two 
"else"-clauses

May confirm the bug with

GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2013-07-06

Andreas






reply via email to

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