From: ams@gnu.org (Alfred M. Szmidt)
To: emacs-devel@gnu.org
Subject: ctags/etags: rc file?
Date: Thu, 20 Nov 2014 06:47:53 -0500 [thread overview]
Message-ID: <E1XrQDJ-0005kZ-BN@fencepost.gnu.org> (raw)
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,
--language=none
--regex='/[ \t]*function.*=[ \t]*\([^ \t]*\)[ \t]*(/\1/'
--regex='/###key \(.*\)/\1/'
--regex='/[ \t]*global[ \t].*/'
*.m
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
next reply other threads:[~2014-11-20 11:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 11:47 Alfred M. Szmidt [this message]
2014-11-20 12:07 ` ctags/etags: rc file? Francesco Potortì
2014-11-20 12:14 ` Alfred M. Szmidt
2014-11-20 12:12 ` Ivan Shmakov
2014-11-20 12:19 ` Masatake YAMATO
2014-11-20 12:34 ` Alfred M. Szmidt
2014-11-21 2:26 ` Masatake YAMATO
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1XrQDJ-0005kZ-BN@fencepost.gnu.org \
--to=ams@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.