Display current method/class in status bar

Asked by Thomas Güttler

If a method is long, I don't see the "def mymethod(self)" line any more. It would be very good if python mode could display "mymethod" or better "MyClass/mymethod" in the status bar.

Is this already possible?

Question information

Language:
English Edit question
Status:
Solved
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Solved by:
Andreas Roehler
Solved:
Last query:
Last reply:
Revision history for this message
Best Andreas Roehler (a-roehler) said :
#1

Does

M-x which-func-mode RET

what you are looking for?

Revision history for this message
Andreas Roehler (a-roehler) said :
#2
Revision history for this message
Thomas Güttler (hv-tbz-pariv) said :
#3

Thank you, this solved the problem.

To make it available for future sessions I use this:

M-x customize-variable<RET>
which-function-mode

Toggle the value to 'on', then set for the current session and save for future sessions

Revision history for this message
Andreas Roehler (a-roehler) said :
#4

Am 01.07.2013 09:06, schrieb Thomas Güttler:
> Question #231514 on python-mode.el changed:
> https://answers.launchpad.net/python-mode/+question/231514
>
> Status: Answered => Solved

Hallo Thomas,

solltest Du sonst etwas vermissen, feature-requests sind stets willkommen.
Im Bug-tracker mit "whish-list" auszeichnen.

Von mir aus könnte es auch etwas Diskussion über den jeweils richtigen Weg geben.
Vielleicht ist python-mode.el dafür aber auch zu speziell.

Gruß aus Berlin,

Andreas

Revision history for this message
Andreas Roehler (a-roehler) said :
#5

Which should be written in english, sorry for the mistake