ENTER key does not indent properly after "return" statement

Bug #1098793 reported by apogosian@gmail.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

Here is the sample code to reproduce this issue:

def foo():
    while something():
        bar()
    baz()
    return 1

Once the cursor is placed after "return 1" and I hit enter, on the next line, the cursor is placed under the "r" in return statement, instead of moving indentation to the outer block.

"ENTER" key is bound to (py-newline-and-indent)

Some version information:

emacs-version
"GNU Emacs 24.2.1 (i686-pc-cygwin) of 2012-08-27 on fiona"
py-version
"6.1.0"

Changed in python-mode:
milestone: none → 6.1.1
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.