Comment 3 for bug 1095147

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1095147] Re: return key doesn't maintain current indentation level

Am 02.01.2013 15:45, schrieb Benjamin Peterson:
> Sorry, it only happens if there's not a "return" in the function body
> like this:
>
> def f():
> x = 42
>
> [CURSOR]
>

okay, well, that's a very old story.

See comment in python-mode-map:

         ;; Most Pythoneers expect RET `py-newline-and-indent'

Personally I've just newline.
May introduce an option, enabling a change of this setting, mapping RET at newline again.