From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: browser for bash scripts? Date: Mon, 3 Dec 2012 14:43:07 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9828D5F42F@DAKIYA1.pegasus.local> References: <87vcj7bwrs.fsf@pobox.com> <155DEC68569B714B86C2C7075F5EDA9828D5E3DB@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354545727 5592 80.91.229.3 (3 Dec 2012 14:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2012 14:42:07 +0000 (UTC) To: Doug Lewan , "help-gnu-emacs@gnu.org" , Tom Roche Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 03 15:42:19 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 1TfXDu-0002fk-PK for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Dec 2012 15:42:18 +0100 Original-Received: from localhost ([::1]:45012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfXDj-0001PY-4a for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Dec 2012 09:42:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfXDY-0001O0-Qa for help-gnu-emacs@gnu.org; Mon, 03 Dec 2012 09:42:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfXDS-0007dc-Tk for help-gnu-emacs@gnu.org; Mon, 03 Dec 2012 09:41:56 -0500 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:44799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfXDS-0007dU-PS for help-gnu-emacs@gnu.org; Mon, 03 Dec 2012 09:41:50 -0500 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.01.0339.001; Mon, 3 Dec 2012 09:43:07 -0500 Thread-Topic: browser for bash scripts? Thread-Index: AQHNQf6oFKfm3yi2/keyIKyVDlUcw5gIPdQAgAAGEvA= In-Reply-To: <155DEC68569B714B86C2C7075F5EDA9828D5E3DB@DAKIYA1.pegasus.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 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:88029 Archived-At: Ignore my last comment. It turns out Exuberant ctags supports shell directl= y (and I assume it's better than my code). The problem for me (besides my o= wn ignorance) had been that I wasn't using an extension to indicate the lan= guage. Simply the following should work. etags --language-force=3Dsh files... ,Doug > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of Doug Lewan > Sent: Monday, 2012 December 03 09:26 > To: help-gnu-emacs@gnu.org; Tom Roche > Subject: RE: browser for bash scripts? >=20 > I use exuberant ctags. (CYGWIN delivers it. You can also get it here: > http://ctags.sourceforge.net/.) >=20 > The following lines let me find shell functions as tags. >=20 > etags --langdef=3Dshell --regex-shell=3D'/function > [_[:alnum:]]+/[_[:alnum:]]+/' --language-force=3Dshell files > # etags might pick up tag-like things in comments. Get rid of > them. > sed -n -e '/#/d' -ep < TAGS > TTT && mv TTT TAGS >=20 > It has changed my life. (Perhaps I need a better life....) >=20 > ,Doug >=20 > > -----Original Message----- > > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > > Behalf Of Tom Roche > > Sent: Sunday, 2012 June 03 23:07 > > To: help-gnu-emacs@gnu.org > > Subject: browser for bash scripts? > > > > > > Does anyone have code to make speedbar, ECB, or other code browser > > display/navigate bash scripts? I'd like, e.g., to easily navigate > > between variable and function definitions and calls/uses. Currently, > > for the latter, I'm `find-grep`ing '^function ': that works, but is > > not nearly so pleasant as was speedbar in JDEE (back when I did > mostly > > java, several years ago). > > > > TIA, Tom Roche >=20