[Top][All Lists]

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

ctags/etags: rc file?

From: Alfred M. Szmidt
Subject: ctags/etags: rc file?
Date: Thu, 20 Nov 2014 06:47:53 -0500

Would it be possible for ctags/etags to read a simple .etags (or
something) file that contains the command line arguments?  The reason
for it is that often projects have a bunch of default arguments that
are being passed to etags, which are not just regexps and it is
annoying to keep track of them at times.

If .etags (one argument per line) contains,

  --regex='/[ \t]*function.*=[ \t]*\([^ \t]*\)[ \t]*(/\1/'
  --regex='/###key \(.*\)/\1/'
  --regex='/[ \t]*global[ \t].*/'

And then issuing "etags -Z" (or some other sensible short option) it
would be equivalent to running,

  etags --language=none --regex='/[ \t]*function.*=[ \t]*\([^ \t]*\)[ 
\t]*(/\1/' --regex='/###key \(.*\)/\1/' --regex='/[ \t]*global[ \t].*/' *.m

reply via email to

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