unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Badari Kakumani" <badarisj@gmail.com>
Subject: Re: way to quickly jump to functions using menu created bymouseclicks
Date: 21 Dec 2006 15:27:18 -0800	[thread overview]
Message-ID: <1166743637.969472.8600@a3g2000cwd.googlegroups.com> (raw)
In-Reply-To: <mailman.2194.1166719954.2155.help-gnu-emacs@gnu.org>


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

  parent reply	other threads:[~2006-12-21 23:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15 21:05 way to quickly jump to functions using menu created by mouse clicks Badari Kakumani
2006-12-15 21:54 ` Drew Adams
     [not found] ` <mailman.1949.1166237360.2155.help-gnu-emacs@gnu.org>
2006-12-18 15:54   ` Badari Kakumani
2006-12-18 16:51     ` way to quickly jump to functions using menu created by mouseclicks Drew Adams
2006-12-19  1:04     ` way to quickly jump to functions using menu created by mouse clicks Ilya Zakharevich
     [not found]     ` <mailman.2074.1166468600.2155.help-gnu-emacs@gnu.org>
2006-12-21 16:13       ` way to quickly jump to functions using menu created by mouseclicks Badari Kakumani
2006-12-21 16:52         ` way to quickly jump to functions using menu created bymouseclicks Drew Adams
     [not found]         ` <mailman.2194.1166719954.2155.help-gnu-emacs@gnu.org>
2006-12-21 23:27           ` Badari Kakumani [this message]
2006-12-22  0:50             ` way to quickly jump to functions using menu createdbymouseclicks Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1166743637.969472.8600@a3g2000cwd.googlegroups.com \
    --to=badarisj@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).