From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Paul Pogonyshev <pogonyshev@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: Which Function mode and Python mode
Date: Sat, 30 Jun 2007 22:01:28 -0400 [thread overview]
Message-ID: <jwvir94hoin.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200707010011.17127.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Sun\, 1 Jul 2007 00\:11\:16 +0300")
>> > 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
next prev parent reply other threads:[~2007-07-01 2:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 22:10 Which Function mode and Python mode Paul Pogonyshev
2007-06-30 18:31 ` Stefan Monnier
2007-06-30 21:11 ` Paul Pogonyshev
2007-07-01 2:01 ` Stefan Monnier [this message]
2007-07-01 11:09 ` Paul Pogonyshev
2007-07-12 4:37 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvir94hoin.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=pogonyshev@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.