[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: etags for mfiles?

From: Mario Storti
Subject: Re: etags for mfiles?
Date: Tue, 10 Nov 1998 17:52:12 -0300

>>>>> On Tue, 10 Nov 1998 14:25:54 -0600 (CST), 
>>>>>      "John W. Eaton" <address@hidden> said:

> On 10-Nov-1998, address@hidden <address@hidden> wrote:
> | Sorry if this message is off-topic, but does anyone use tags files for
> | directories of mfiles?  If so, how?

> I don't think it's off topic.  Unfortunately, I also don't know of
> anyone who has modified etags/ctags/?tags to parse Octave .m files.
> If anyone is interested in working on a project like this (or has
> already done so) please let me know as I think it would be a useful
> addition for Octave and Emacs.

> Thanks,

> jwe

Below there is a basic script. It generates tags for the 'function'
entries and 'global' variables. Also for entries of the form,

###key label

in this way you can jump to specific places by typing 'M-. label'. The
'--include' option allows to include the tags from my TOOLS directory.

Don't take it too seriously, I'm not an expert in tags. Perhaps
someone else (Kurt?) has something better. 


Mario Alberto Storti                           | Fax: (54)(42) 55.09.44 |
Centro Internacional de Metodos Computacionales| Tel: (54)(42) 55.91.75 |
  en Ingenieria - CIMEC (INTEC/CONICET-UNL)    |........................|  
INTEC, Guemes 3450 - 3000 Santa Fe, Argentina                           |
Reply: address@hidden, |

=================== 'otags' script ===============================
#$Id: otags,v 1.5 1997/07/16 22:13:12 mstorti Exp mstorti $

etags --lang=none \
      --regex='/[ \t]*function *[^ =]*=\([^ (]*\)/\1/' \
      --regex='/[ \t]*global .*/' \
      --regex='/###key .*/' \
      --include="$HOME/OCTAVE/TOOLS/TAGS" \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]