all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Greg Laun <greg.laun@gmail.com>
To: Yagnesh Raghava Yakkala <hi@yagnesh.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: python.el and imenu
Date: Mon, 30 Jul 2012 09:49:36 -0400	[thread overview]
Message-ID: <501690F0.5070606@gmail.com> (raw)
In-Reply-To: <87a9yhv8zg.fsf@yagnesh.org>

Hello,

On 07/30/2012 06:28 AM, Yagnesh Raghava Yakkala wrote:
> Hello Greg,
>
> Greg Laun <greg.laun@gmail.com> writes:
>
> For me Imenu is working with both emacs-24.1 and with trunk
> (emacs-24.2). Notice that 24.2 will come with Fabian's python.el replacing the
> old one.
>> How does one use imenu with the current python.el in emacs24?  When I try M-x
>> imenu in a python file, I always get the message, "No items suitable for an
>> index found in this buffer".
> when you are in the python buffer, whats the value of
> `imenu-create-index-function' (C-h v).

I changed my .emacs file to only contain the lines

(add-hook 'python-mode-hook
   (lambda ()
     (setq imenu-create-index-function 'python-imenu-create-index)))

even though I see that python.el also sets imenu-create-index-function 
to python-imenu-create-index.

But in a python buffer, (C-h v) gives

imenu-create-index-function is a variable defined in `imenu.el'.
Its value is semantic-create-imenu-index
Local in buffer tmp.py; global value is
imenu-default-create-index-function

So it looks like semantic is mucking things up?  The 
semantic-create-imeu-index function is defined in imenu.el.
>> I have spent a good part of the day searching the Internet for an answer and
>> have had no luck.  I have found other people having the same problem
>> (e.g. http://stackoverflow.com/questions/6317667/fabian-gallinas-python-el-imenu-support)
>> but the solutions there do not work for me.
> There is a bug in CEDET's imenu function for python, So if you have semantic
> enabled (from CEDET) please turn it off.

My .emacs file is pretty bare, so I'm not sue how semantic could be 
turned on unless it's on by default.  In that case I'm not sure how to 
turn it off.

Thanks for your reply.

>
> Thanks.,




  reply	other threads:[~2012-07-30 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30  3:26 python.el and imenu Greg Laun
2012-07-30 10:28 ` Yagnesh Raghava Yakkala
2012-07-30 13:49   ` Greg Laun [this message]
     [not found] <mailman.5953.1343629267.855.help-gnu-emacs@gnu.org>
2012-08-04 11:04 ` Matthias Meulien
  -- strict thread matches above, loose matches on Subject: below --
2012-08-04 16:20 Dan Maftei

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=501690F0.5070606@gmail.com \
    --to=greg.laun@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hi@yagnesh.org \
    /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.