From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Laun Newsgroups: gmane.emacs.help Subject: Re: python.el and imenu Date: Mon, 30 Jul 2012 09:49:36 -0400 Message-ID: <501690F0.5070606@gmail.com> References: <5015FED6.9090406@gmail.com> <87a9yhv8zg.fsf@yagnesh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343656196 27920 80.91.229.3 (30 Jul 2012 13:49:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2012 13:49:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Yagnesh Raghava Yakkala Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 15:49:56 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SvqM7-0007Pi-Vx for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2012 15:49:56 +0200 Original-Received: from localhost ([::1]:59335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvqM7-0003MF-D7 for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2012 09:49:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvqLv-0003M2-Vf for help-gnu-emacs@gnu.org; Mon, 30 Jul 2012 09:49:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvqLr-0002O0-I5 for help-gnu-emacs@gnu.org; Mon, 30 Jul 2012 09:49:43 -0400 Original-Received: from mail-qa0-f48.google.com ([209.85.216.48]:35083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvqLr-0002Nv-D6 for help-gnu-emacs@gnu.org; Mon, 30 Jul 2012 09:49:39 -0400 Original-Received: by qadz32 with SMTP id z32so1077873qad.0 for ; Mon, 30 Jul 2012 06:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=dP1dVnl0Mvy0SETUvqVDP2Zja3foGMCwjvQTZaYNd7g=; b=IgHslD5TpmgyIPH9/04NCPAfBgrf9Hl32bafMuDoZOZdO9IFBIG13eiNeZWIz1FINw i2fw3SLqxOXJurcuUkjcVhURfFSnCvs2D1JPxBTEuH6WzztCeDSENkLl/O2yC9U0L6BM L1Pg/h14uPQXYAFnNvxL65F39ARgK6+NPmFclFEe5rtPr6byQKgXuRzh+6Bju0AIOt2/ 0EvJ4Asl9YkWZSVKigDHyJq4V5HotBWnrnBZ9lCXspm46tYRIj0bqYHkOb5ueF6Fk5se 9CgkTirqkeqotYwoKQ6Bo2AwkwJC3JuPly82iY757Y2gljAn1/mJtwpxKOF3gTYgPx3Q kkig== Original-Received: by 10.224.211.137 with SMTP id go9mr23482870qab.77.1343656178768; Mon, 30 Jul 2012 06:49:38 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-108-28-201-10.washdc.fios.verizon.net. [108.28.201.10]) by mx.google.com with ESMTPS id do2sm701627qab.1.2012.07.30.06.49.37 (version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 06:49:38 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: <87a9yhv8zg.fsf@yagnesh.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.48 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86131 Archived-At: Hello, On 07/30/2012 06:28 AM, Yagnesh Raghava Yakkala wrote: > Hello Greg, > > Greg Laun 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.,