From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Badari Kakumani" Newsgroups: gmane.emacs.help Subject: Re: way to quickly jump to functions using menu created bymouseclicks Date: 21 Dec 2006 15:27:18 -0800 Organization: http://groups.google.com Message-ID: <1166743637.969472.8600@a3g2000cwd.googlegroups.com> References: <1166717622.794637.130480@42g2000cwt.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1166744434 2339 80.91.229.10 (21 Dec 2006 23:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2006 23:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 22 00:40:32 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GxXWQ-00018n-9r for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Dec 2006 00:40:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxXWM-0000tp-Ua for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Dec 2006 18:40:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a3g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 82 Original-NNTP-Posting-Host: 128.107.248.220 Original-X-Trace: posting.google.com 1166743644 25285 127.0.0.1 (21 Dec 2006 23:27:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 21 Dec 2006 23:27:24 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: a3g2000cwd.googlegroups.com; posting-host=128.107.248.220; posting-account=0N54pQ0AAACKpZzrYixCds5IKoApfAwr Original-Xref: shelby.stanford.edu gnu.emacs.help:144219 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:39822 Archived-At: Drew Adams wrote: > > > > > > i am looking for easily configurable way using mouse-clicks to > > > > > > preferably > > > > > > open-up a menu of function-names in the current-buffer and > > > > jump to that > > > > > > function on selecting the menu item. > > > > > > > > > > * A menu-bar menu "Defs" for Imenu - use only the mouse. > > > > > http://www.emacswiki.org/cgi-bin/wiki/imenu%2b.el > > > > > > > > basically i wanted to see a menu of functions using my mouse. > > > > i couldn't figure out how to get imenu or imenu+ to do that. > > > > may be i am missing something on how to use the imenu or imenu+ > > > > packages. any pointers on the documentation are highly appreciated. > > > > thanks,-badari > > > > > > I'm not sure what you mean. Imenu+ gives you a menu-bar menu, Defs, of > > > function (and variable etc.) definitions, which you can access using the > > > mouse. However, it does this only for Lisp. Perhaps you are looking for > > > something that does the same thing for a different language? If so, you > > > might be able to figure out how to do that (using Emacs Lisp), > > > based on how Imenu+ does it for Lisp. > > > > > > To be sure we're communicating, does Imenu+ do what you want > > > for Emacs-Lisp files (*.el) at least? If not, try explaining again > > > what it is that you are looking for. > > > > there is something i am really missing ;) > > i am using emacs version 21.2.95.2 on sun machines. > > That's fine. > > > the menu items at the top i see are as follows: > > File Edit Options Buffers Tools Emacs-Lisp Help > > None of the above menus seem to lead me to imenu stuff. > > Did you load imenu+.el? Not just imenu.el, but imenu+.el (it will, in turn, > load imenu.el). yes. i did. > > Did you visit an Emacs-Lisp file - for example, imenu+.el? In an Emacs-Lisp yes. i did. > buffer, you should see a separate menu-bar menu, Defs, with menu items for > definitions in the visited file. In a different buffer, that is not in > Emacs-Lisp mode, you will not see menu Defs. not sure how i missed it -- but, yes, i now see Defs menu-bar item that lets me jum to selected function/macro etc of the .el file i am visiting. > > > is it possible that some other package that i am using is clobbering > > the menu item put-forward by imenu? > > Possible, but I doubt that is your problem. > > > not sure about the exact elisp code/functions that control the emacs > > menus. once i know the code/functions that control > > this feature, i could grep the packages i have and see if they do any > > funny things with my menus. any pointers are appreciated. > > Before you try to debug things, please make sure that you have actually > tried what I suggest above: load imenu+.el and then visit an Emacs-Lisp > file. now, i work mostly with perl files and load cperl package from somewhere. if i type 'M-x imenu' i DO see a separate buffer containing function-names. if i select function using Mouse-2 button, i do jump to that function. BUT i do NOT see the neat 'Defs' menu-bar item you noted. how do i go about fixing it? thanks a lot for your help. much appreciated. -badari