line after colon with inline comment won't indent properly

Bug #1109946 reported by Ryan Olf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

py-version: 6.1.1
emacs-version: GNU Emacs 24.3.50.3 (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:
        b
    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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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