spuriously indents whole line while making some portion inline comment

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

Bug Description

originally it actually added indentation level in my case so code became

        @sweepargs(clf=[kNN(5)]) #clfswh['multiclass'])
    def test_auc(self, clf):

but on example to reproduce

class A(object):
    def prev():
        pass

    @decorator(1) lkajsd
    def buga():
        pass

attempt to insert # before lkajsd actually dedented it and made it

class A(object):
    def prev():
        pass

@decorator(1) #lkajsd
    def buga():
        pass

imho making inline comment should not alter whole line indentation

Changed in python-mode:
milestone: none → 6.1.0
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Points at a bug in py-compute-indentation. Setting py-electric-comment-p to nil should help for the moment. Thanks for the report.

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.