From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eric Ludlam Newsgroups: gmane.emacs.help Subject: Re: Speedbar question Date: 20 Mar 2003 14:39:33 -0500 Organization: The MathWorks, Inc. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7a11102c.0303200857.4ae0466a@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048189588 29625 80.91.224.249 (20 Mar 2003 19:46:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 19:46:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 20:46:26 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 18w5ze-0007he-00 for ; Thu, 20 Mar 2003 20:46:26 +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 18w5uK-0002zv-07 for gnu-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2003 14:40:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!newsswitch.lcs.mit.edu!newsfeed.mathworks.com!news.mathworks.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: ludlame-mac.dhcp.mathworks.com Original-X-Trace: ginger.mathworks.com 1048189173 11754 144.212.113.235 (20 Mar 2003 19:39:33 GMT) Original-X-Complaints-To: news@mathworks.com Original-NNTP-Posting-Date: Thu, 20 Mar 2003 19:39:33 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:111268 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:7768 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7768 >>> 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 -- Eric Ludlam "Photonic Doodler" The MathWorks x 7556 eludlam@mathworks.com (work) http://www.mathworks.com eric@siege-engine.com (home) http://www.siege-engine.com