From: jwilde@draper.com (John Wilde)
Subject: Re: Speedbar question
Date: 24 Mar 2003 17:03:04 -0800 [thread overview]
Message-ID: <7a11102c.0303241703.d50c5ab@posting.google.com> (raw)
In-Reply-To: koy934vp8q.fsf@ludlame-mac.dhcp.mathworks.com
thanks eric,
i had the imenu-generic-expression variable set, but still no luck.
i notice that no changes i make to the text-mode.el file seem to have
any effect. in fact i can take it out of the directory tree and my
text-mode loads up just fine. am i modifying the wrong file??
-john
Eric Ludlam <eludlam@mathworks.com> wrote in message news:<koy934vp8q.fsf@ludlame-mac.dhcp.mathworks.com>...
> You also need to set imenu-generic-expression in test-mode, probably
> like this:
>
> (make-local-variable 'imenu-generic-expression)
> (setq imenu-generic-expression text-mode-imenu-generic-expression)
>
> Eric
>
> >>> jwilde@draper.com (John Wilde) seems to think that:
> >thanks.
> >
> >i am trying to add imenu support for the text-mode such that it
> >accomplishes this, looking at how other modes (eg fortran.el) do
> >this, i defined the appropriate 'text-mode-imenu-generic-expression'
> >variable in my text-mode.el file, but the text mode still does not
> >support imenu. any suggestions on what i'm missing and where i can
> >look for more help on this?
> >
> >thanks, john
> >
> >
> >Eric Ludlam <eludlam@mathworks.com> wrote in message news:<koptolx1xm.fsf@ludlame-mac.dhcp.mathworks.com>...
> >> >>> jwilde@draper.com (John Wilde) seems to think that:
> >> >I would like to use the speedbar for a custom file type and define a
> >> >regular expression that determines the line in the file to jump to. i
> >> >am able to run etags to create the TAGS file that I want, but how do I
> >> >make this work with speedbar so that it will expand into a list?
> >> >(Like, for example, the way functions are listed when a .cpp file is
> >> >opened)
> >>
> >> The easiest way to do this is to support imenu. Imenu has it's own
> >> documentation in Emacs. You can read on how to accomplish this.
> >>
> >> Once you have done this, you can add this to your .emacs or imenu
> >> support file:
> >>
> >> (speedbar-add-supported-extension ".foo")
> >>
> >> to tell speedbar to try and expand tags in this file.
> >>
> >> Good Luck
> >> Eric
next prev parent reply other threads:[~2003-03-25 1:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-20 16:57 Speedbar question John Wilde
2003-03-20 19:39 ` Eric Ludlam
2003-03-21 16:03 ` John Wilde
2003-03-24 14:00 ` Eric Ludlam
2003-03-25 1:03 ` John Wilde [this message]
2003-03-25 10:45 ` Kai Großjohann
2003-03-25 15:14 ` Kevin Rodgers
2003-03-25 19:40 ` John Wilde
-- strict thread matches above, loose matches on Subject: below --
2005-02-11 20:39 Javier Oviedo
2005-02-12 11:09 ` Eli Zaretskii
[not found] ` <mailman.1861.1108208577.2841.help-gnu-emacs@gnu.org>
2005-02-14 15:30 ` Javier Oviedo
2005-02-14 21:33 ` Eric Ludlam
2005-02-15 18:34 ` Javier Oviedo
2005-02-15 20:54 ` Javier Oviedo
2007-10-10 13:30 Ke Lu
2008-12-07 9:58 Tracing what is loading Juanma Barranquero
2008-12-07 11:22 ` speedbar question Maindoor
2008-12-07 15:21 ` Drew Adams
2008-12-07 15:34 ` Maindoor
2008-12-07 17:10 ` Drew Adams
2008-12-08 5:42 ` Maindoor
2008-12-08 5:46 ` Maindoor
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=7a11102c.0303241703.d50c5ab@posting.google.com \
--to=jwilde@draper.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).