From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jwilde@draper.com (John Wilde) Newsgroups: gmane.emacs.help Subject: Re: Speedbar question Date: 24 Mar 2003 17:03:04 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7a11102c.0303241703.d50c5ab@posting.google.com> References: <7a11102c.0303200857.4ae0466a@posting.google.com> <7a11102c.0303210803.78553848@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1048554469 15446 80.91.224.249 (25 Mar 2003 01:07:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2003 01:07:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 02:07:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18xcuq-00040w-00 for ; Tue, 25 Mar 2003 02:07:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18xct2-0007tz-01 for gnu-help-gnu-emacs@m.gmane.org; Mon, 24 Mar 2003 20:05:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 192.80.95.242 Original-X-Trace: posting.google.com 1048554184 535 127.0.0.1 (25 Mar 2003 01:03:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 25 Mar 2003 01:03:04 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:111365 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7867 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7867 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 wrote in message news:... > 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 wrote in message news:... > >> >>> 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