emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which Function mode and Python mode


From: Stefan Monnier
Subject: Re: Which Function mode and Python mode
Date: Sat, 30 Jun 2007 22:01:28 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> > This short patch adds support for Which Function minor mode to Python
>> > mode.  It also adds Python mode to the default list of modes where
>> > Which Function mode is in effect.
>> 
>> How does your code compare to the result you get with the default which-func
>> support, which relies on imenu's data?

> class SomeClass (object):
>     class Nested (object):
>         def __init__(self):
>             pass

> Put the point on `pass' line.  With my code: "SomeClass.Nested.__init__".
> With original imenu-dependent code: " class SomeClass".

Great.  Does it ever happen that the nesting is high enough that the length
can becomes a problem?
Can you adjust your patch so that it's also used by C-x 4 a ?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]