unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Akshay Kothare <askothare@gmail.com>
To: Emacs-devel@gnu.org
Subject: Emacs Imenu newbee question !
Date: Tue, 10 Apr 2012 12:23:41 +0530	[thread overview]
Message-ID: <CADj2gvHmecY0ydoZCcMgqSxmFCAkqBr0-+J8XDoQ0-uTnD+bOw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1309 bytes --]

Hi !

I am trying to customize my emacs. I must admit, I am relatively new to
making these customizations.

This is what I am trying to do.

I have a file, with lots of methods written in itcl. I wanted to get a list
of all methods in that file/buffer when I do a right-click [mouse-3] in the
buffer. Currently, I do get such a list for regular tcl procedures and lisp
procedures.  However, I am unable to get the same for the methods in the
itcl file.

I have tried builidng my regexp for the matches using M-x re-builder and
then placing the regexp in my tcl-mode.el file. However, when I then close
emacs and re-start it and try doing a right mouse click [mouse-3] in the
file, I get a message which says the following:

"No items suitable for an index found in this buffer"

Here's my sample imenu-generic-expression

(defvar tcl-imenu-generic-expression
  '(

    ("Methods" "^\\(itcl::body *[^ ]+\\)" 1))


  "Imenu generic expression for tcl-mode.  See `imenu-generic-expression'.")


Somewhere below, I also have the following definition in my tcl-mode.el
file.

 (set (make-local-variable 'imenu-generic-expression)
     tcl-imenu-generic-expression)

Am I missing anything here ?

If you need any other information from my side, pls. let me know.

Hope to hear from you.

Thanks and regards,
Akshay

[-- Attachment #2: Type: text/html, Size: 1485 bytes --]

                 reply	other threads:[~2012-04-10  6:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CADj2gvHmecY0ydoZCcMgqSxmFCAkqBr0-+J8XDoQ0-uTnD+bOw@mail.gmail.com \
    --to=askothare@gmail.com \
    --cc=Emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).