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: 21 Mar 2003 08:03:52 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7a11102c.0303210803.78553848@posting.google.com> References: <7a11102c.0303200857.4ae0466a@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 1048262811 11262 80.91.224.249 (21 Mar 2003 16:06:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 16:06:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 17:06:50 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 18wP2f-0002vP-00 for ; Fri, 21 Mar 2003 17:06:49 +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 18wP1T-0004gn-01 for gnu-help-gnu-emacs@m.gmane.org; Fri, 21 Mar 2003 11:05:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 192.80.95.242 Original-X-Trace: posting.google.com 1048262633 23532 127.0.0.1 (21 Mar 2003 16:03:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 21 Mar 2003 16:03:53 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:111288 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:7787 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7787 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