all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Bonow <thorsten.bonow@withouthat.org>
To: help-gnu-emacs@gnu.org
Subject: Re: browser for bash scripts?
Date: Sat, 01 Dec 2012 00:02:41 +0100	[thread overview]
Message-ID: <87r4nad78u.fsf@withouthat.org> (raw)
In-Reply-To: jwvobifugrm.fsf-monnier+gnu.emacs.help@gnu.org

>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> 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



  reply	other threads:[~2012-11-30 23:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-04  3:07 browser for bash scripts? Tom Roche
2012-11-29  6:26 ` Easior
     [not found] ` <mailman.14117.1354247749.855.help-gnu-emacs@gnu.org>
2012-11-30 17:47   ` Stefan Monnier
2012-11-30 23:02     ` Thorsten Bonow [this message]
2012-12-01 11:28     ` Oleksandr Gavenko
2012-12-03 14:26 ` Doug Lewan
2012-12-03 14:43   ` Doug Lewan

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4nad78u.fsf@withouthat.org \
    --to=thorsten.bonow@withouthat.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.