From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Bonow Newsgroups: gmane.emacs.help Subject: Re: browser for bash scripts? Date: Sat, 01 Dec 2012 00:02:41 +0100 Message-ID: <87r4nad78u.fsf@withouthat.org> References: <87vcj7bwrs.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1354316715 7108 80.91.229.3 (30 Nov 2012 23:05:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 23:05:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 01 00:05:27 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TeZe7-0003gh-Lt for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 00:05:23 +0100 Original-Received: from localhost ([::1]:36240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeZdw-0001Sa-5v for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 18:05:12 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-X-Trace: news.dfncis.de sYiO5WOuzmzLSmDL2ea8MwdFSQoLfMZfDqFbdLQrWZ0Tj3tXI0hq5BSqE7E9v3mGZZT6xZMtOP Cancel-Lock: sha1:dtqR412wTv3FmLlwke8boku9rBI= sha1:QTXgFHKwhUN8NocV3ckfgc4GP7U= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:195662 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87983 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: TR> Does anyone have code to make speedbar, ECB, or other code browser TR> display/navigate bash scripts? Stefan> `sh-script.el' already provides support for `imenu', so Speedbar Stefan> should already find the functions in the bash scripts, or at least Stefan> there should be very little preventing it from happening. TR> I'd like, e.g., to easily navigate between variable and function TR> definitions and calls/uses. Stefan> I guess we could add variables to sh-mode's `imenu' support. Stefan> Stefan Hi, I use the skeleton added below for my scripts. Via imenu I can jump to the beginning of all the "##### XXX #####" blocks and to every function. Toto #!/bin/bash ##### Preamble ##### ... ##### Functions ##### function dummy_function() { ... return } # end of dummy_function ... ##### Initialization And Setup ##### ... ##### Command Line Processing ##### ... ##### Main Logic ##### ... # Local Variables: # mode: outline-minor # outline-regexp: "\\(function\\)\\|\\(##### \\)" # outline-heading-end-regexp: "\\(() {\n\\)\\|\\( #####\n\\)" # fill-column: 70 # End: -- This twinkie thing---it ain't over yet. Tallahassee (Woody Harrelson): Zombieland