From octave-sources-request at bevo dot che dot wisc dot edu Tue May 28 19:17:23 2002 Subject: patch for otags From: "Joseph P. Skudlarek" To: octave-sources at bevo dot che dot wisc dot edu Date: Tue, 28 May 2002 19:08:49 -0500 Hi. I recently installed octave-2.1.36, and found that emacs/otags is unchanged from 2.0.14. Here's a patch (diff -c) which will allow otags to handle functions without arguments, as well as functions without results. I've been using it successfully for about a year. A ChangeLog entry is included at the end. Questions to me. /Jskud ======================================================================= [jskud at gyges octdev]$ diff -c source/emacs/otags /usr/local/bin/otags *** source/emacs/otags Thu Nov 12 19:44:33 1998 --- /usr/local/bin/otags Wed Apr 18 19:40:47 2001 *************** *** 1,4 **** ! #! /bin/sh # Generate a TAGS file from a set of Octave .m files for use with Emacs. # --- 1,4 ---- ! #! /bin/sh -ue # Generate a TAGS file from a set of Octave .m files for use with Emacs. # *************** *** 18,26 **** # jump to it. :-( # Author: Mario Storti ! etags --lang=none \ ! --regex='/[ \t]*function.*=[ \t]*\([^ \t]*\)[ \t]*(/\1/' \ --regex='/###key \(.*\)/\1/' \ --regex='/[ \t]*global[ \t].*/' \ *.m --- 18,33 ---- # 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*# + ##[] ======================================================================= 2002-05-28 Joseph P. Skudlarek * emacs/otags: handle declarations without arguments and/or return values. ======================================================================= []