From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Berndl Newsgroups: gmane.emacs.help Subject: Re: list Perl functions in menubar dropdown Date: 10 Jun 2005 11:44:13 +0200 Organization: "sd&m AG, Muenchen, Germany" Message-ID: References: <090620051648560491%bland@uNIVOFmich.edu.REMOVE.UPPER.CASE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118396606 19038 80.91.229.2 (10 Jun 2005 09:43:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2005 09:43:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 10 11:43:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dgg2X-00064h-Mk for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jun 2005 11:43:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dgg9d-0003KC-Kw for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jun 2005 05:50:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsfeed.stueberl.de!newsfeeder1.noc.eunet-ag.at!news.eunet.at!news-hub.siol.net!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!news.sdm.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: sachrang.muc.sdm.de Original-X-Trace: news.sdm.de 1118396652 8583 193.102.181.133 (10 Jun 2005 09:44:12 GMT) Original-X-Complaints-To: usenet@news.sdm.de Original-NNTP-Posting-Date: Fri, 10 Jun 2005 09:44:12 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:131926 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27396 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27396 Maybe you are also interested in the Emacs Code Browser (ECB) - see http://ecb.sf.net... Klaus On Thu, 09 Jun 2005, Peyton Bland wrote: > In article , Drew > Adams wrote: > > > In the past, I have used a version of xemacs (version 19, I think) > > that included an item in the menubar that was labeled Functions. It > > would drop down (depending on mode) a list of Perl (and C) function > > names; selecting a name in this list would take you to that point in > > the file. I am now using GNU emacs v21.3.1 on another system, and I'd > > like to have this functionality available... > > > > See library imenu.el. > > > Thanks, Adam. This library was already being loaded, but I'm such an > emacs newbie that I didn't realize that I needed to put > imenu-add-menubar-index in my .emacs file to activate this > functionality. A piece of companion functionality that I forgot to ask > about comes by adding which-func-mode (as defined in which-func.el) > which shows on the mode-line the name of the function in which the > point resides. I added these two commands to perl-mode-hook (and to > c-mode-hook and shell-mode-hook). So now I'm happy... > > Thanks again, > Peyton -- Klaus Berndl mailto: klaus.berndl@sdm.de sd&m AG http://www.sdm.de software design & management Carl-Wery-Str. 42, 81739 Muenchen, Germany Tel +49 89 63812-392, Fax -220