Comment indentation broken after tuple definition

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

Bug Description

I've browsed the bug list and didn't see this issue listed. Below is a sample file that demonstrates what happens. I am using 6.0.2. It doesn't happen with lists and dicts and only happens with tuples with a ")" on a line of its own.

-----
# Below is the default indenation. After the final ")", type a "#" and notice
# how it automatically indents when it shouldn't
marketing_companies = (
    ('ABC Marketing', 'http://example.com'),
    )
    #

    #

    # it will indent every subsequent "#"

# Until I delete the space in front of it

# I prefer this format:
marketing_companies = (
    ('ABC Marketing', 'http://example.com'),
)
    #

    # and the same thing happens

    # I think this has to do with py-electric-comment

Ryan Kaskel (ryankaskel)
description: updated
Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.3
importance: Undecided → Medium
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi,

that seems fixed meanwhile

Could you check out the current trunk?

If you have bazaar installed, just do

bzr branch lp:python-mode

Also exists a download button from the html-surface.

Thanks,

Andreas

Changed in python-mode:
status: New → Incomplete
Revision history for this message
Ryan Kaskel (ryankaskel) wrote :

This solves the problem.

Thanks Andreas for all your hard work on this project!

Changed in python-mode:
milestone: 6.0.3 → 6.0.4
Changed in python-mode:
status: Incomplete → Fix Released
Changed in python-mode:
milestone: 6.0.4 → 6.0.3
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.