line after colon with inline comment won't indent properly

Bug #1109946 reported by Ryan Olf on 2013-01-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Andreas Roehler

Bug Description

py-version: 6.1.1
emacs-version: GNU Emacs (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2013-01-28 on asura.local - Aquamacs Distribution 3.xdev

Following a line ending in a colon (for example "if expression:") and including an inline comment ("if expression: # inline comment"), python-mode will not increase the indentation level as it should , even with repeated <TAB> presses.

Code example:

def f():
    if a:
    if c: # inline comment
    |<---- cursor will not indent properly with <TAB>>

Changed in python-mode:
milestone: none → 6.1.1
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
Changed in python-mode:
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Ryan Olf (ryan-efrus) wrote :

Fixed for me too. Great work, Andreas, and thank you.

Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers