From: Masatake YAMATO <yamato@redhat.com>
To: ams@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: ctags/etags: rc file?
Date: Thu, 20 Nov 2014 21:19:12 +0900 (JST) [thread overview]
Message-ID: <20141120.211912.1151762649217499427.yamato@redhat.com> (raw)
In-Reply-To: <E1XrQDJ-0005kZ-BN@fencepost.gnu.org>
Hi,
Yes, ctags has such ability.
--options=file
Read additional options from file. The file should contain one
option per line. As a special case, if --options=NONE is spec‐
ified as the first option on the command line, it will disable
the automatic reading of any configuration options from either
a file or the environment (see FILES).
There is more advanced feature.
Look at my work at fishman/ctags:
https://github.com/fishman/ctags/blob/master/docs/f-optlib.rst
Optlib may be the feature you want.
fishman/ctags was a branch of exuberant-ctags. However, these days
fishman/ctags people are talking about merging the result into
exuberant-ctags:
https://github.com/fishman/ctags/issues/101
Masatake YAMATO
> 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 prev parent reply other threads:[~2014-11-20 12:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 11:47 ctags/etags: rc file? Alfred M. Szmidt
2014-11-20 12:07 ` Francesco Potortì
2014-11-20 12:14 ` Alfred M. Szmidt
2014-11-20 12:12 ` Ivan Shmakov
2014-11-20 12:19 ` Masatake YAMATO [this message]
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=20141120.211912.1151762649217499427.yamato@redhat.com \
--to=yamato@redhat.com \
--cc=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.