From octave-maintainers-request at bevo dot che dot wisc dot edu Sat Apr 21 11:27:30 2001 Subject: improved otags submission From: "Joseph P. Skudlarek" To: octave-maintainers at bevo dot che dot wisc dot edu Date: Sat, 21 Apr 2001 08:01:06 -0700 Hello, you wonderful people. I've updated the version of otags that came with Octave 2.0.14. Would you please consider updating the code base with this? If you prefer me to do it, then please let me know how. Thanks. /Jskud #! /bin/sh -ue # Generate a TAGS file from a set of Octave .m files for use with Emacs. # # Run as '$ otags' in the given Octave directory to generate a # TAGS file. If you want to include another directory, add a line # prior to the "*.m" line containing something like # `--include=/path/to/other/directory/TAGS" \'. # Tags are generated for function names and for global variables. For # global variables it doesn't work for more than one line global # variables. :-( # Tags are also created for lines of the form '###key foobar' so that # you can jump to this specific place just by typing `M-. foobar'. # Note that tags are not generated for scripts so that you have to add # a line by yourself of the form `###key ' if you want to # jump to it. :-( # Author: Mario Storti # Jskud 18Apr01: handle function dcl w/ no result and/or no args exec etags --lang=none \ --regex='/[ \t]*function.*=[ \t]*\([^ \t()]*\)[ \t]*(/\1/' \ --regex='/[ \t]*function.*=[ \t]*\([^ \t()]*\)[ \t]*$/\1/' \ --regex='/[ \t]*function[ \t]*\([^ \t()]*\)[ \t]*(/\1/' \ --regex='/[ \t]*function[ \t]*\([^ \t()]*\)[ \t]*$/\1/' \ --regex='/###key \(.*\)/\1/' \ --regex='/[ \t]*global[ \t].*/' \ *.m #*NOTREACHED*# ##[]