[Python-mode] [ python-mode-Patches-1077902 ] Show upper methods and classes

SourceForge.net noreply at sourceforge.net
Tue Dec 21 13:45:46 CET 2004


Patches item #1077902, was opened at 2004-12-02 21:57
Message generated for change (Comment added) made by theller
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Guettler (guettli)
Assigned to: Nobody/Anonymous (nobody)
Summary: Show upper methods and classes

Initial Comment:
Hi,

this patch shows the upper methods and classes and binds
this to C-c C-x

Example:
class Foo:
    def blu():
        def subblu():
            print "foo"
if you press C-c C-x in the last line you see
Foo/blu/subblu/ 

This is handy if you query-replace in a long method and
you want to be sure that you are still in this method
and not in the next

Tested with XEmacs 21.4 and Emacs 21.3.1

I tried to bind this into the mode-line, but failed.
This would
be better since you could see all the time in which methods
and classes the cursor is.


----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2004-12-21 13:45

Message:
Logged In: YES 
user_id=11105

FYI: func-menu (included with XEmacs) does something
similar, and also works for other languages.  It also
displays the function or class/method the cursor is in in
the mode-line.

----------------------------------------------------------------------

Comment By: Skip Montanaro (montanaro)
Date: 2004-12-08 16:22

Message:
Logged In: YES 
user_id=44345

I'm working on this.  I noticed a number of changes of "iff"
to "if".  Just
checking to make sure you're aware that in English "iff" is
a shorthand
for "if and only if".  If you were just correcting spelling,
I'll reword those
comments to not rely on idiomatic English.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916


More information about the Python-mode mailing list