Wrong indentation after return or pass keyword

Bug #1087499 reported by Khaoz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Invalid
Medium
Andreas Roehler

Bug Description

Exemple:

class Foo(self):

    def bar(self):
        return self.baz
    | ---- cursor should be here ..
| ---- but it is here and cant press tab to indent.

This also happens when using pass.

I'm using version 6.1.0 (but this also happens with 6.0.12).

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

Can't reproduce. Did you try from Emacs -Q, loading python-mode.el?

Changed in python-mode:
status: In Progress → Incomplete
Revision history for this message
Khaoz (giulianisanches) wrote :

Hi Andreas,

I will try to load emacs without any of my extensions and configs and load python-mode.el to see if it works.

I will report here later.

Thanks.

Revision history for this message
Khaoz (giulianisanches) wrote :

Hi,

Found the problem. I'm used to byte compile my el files, so i was using a old version of python-mode. Just recompiled everything and now it's working.

Sorry about that.

Thanks.

Revision history for this message
Andreas Roehler (a-roehler) wrote :

You are welcome. Any response tells us something useful, even if flagged "invalid" :)

Changed in python-mode:
status: Incomplete → Invalid
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.