[Top][All Lists]

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

bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode

From: Andreas Röhler
Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode
Date: Mon, 11 Aug 2014 09:11:03 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.7.0

On 09.08.2014 12:00, Jorgen Schaefer wrote:
With a freshly compiled Emacs (git ref 3fc84165), I get the following
behavior. In a Python buffer with electric-indent-mode enabled, enter

def foo():
     print "Foo"

def bar()

Adding a colon (":"") at the end of bar() will then indent the line to
the same indentation level as the "print" statement.

While this is the default indentation level for RET after the print
statement, I would expect that the colon will not reindent my current
line. python-mode can not know which indentation level is correct,


But what should electric-indent do than? IMO the only reasonable is indenting 
to outmost permitted.
Which seems the case.

Electric behaviour seems not that useful in Python than with other modes.
AFAICS not a bug.



reply via email to

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