From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peyton Bland Newsgroups: gmane.emacs.help Subject: Re: list Perl functions in menubar dropdown Date: Thu, 09 Jun 2005 16:48:56 -0400 Message-ID: <090620051648560491%bland@uNIVOFmich.edu.REMOVE.UPPER.CASE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1118351634 14213 80.91.229.2 (9 Jun 2005 21:13:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2005 21:13:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 09 23:13:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgUKo-0005eZ-QQ for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jun 2005 23:13:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgURn-0000XT-UY for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jun 2005 17:20:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsxfer.itd.umich.edu!news.itd.umich.edu!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Thoth/1.7.2 (Carbon/OS X) Original-Lines: 23 Original-NNTP-Posting-Host: 141.214.12.61 Original-X-Trace: news.itd.umich.edu 1118350136 141.214.12.61 (Thu, 09 Jun 2005 16:48:56 EDT) Original-NNTP-Posting-Date: Thu, 09 Jun 2005 16:48:56 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:131914 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:27384 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27384 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