From: Ivan Shmakov <ivan@siamics.net>
To: emacs-devel@gnu.org
Subject: Re: ctags/etags: rc file?
Date: Thu, 20 Nov 2014 12:12:22 +0000 [thread overview]
Message-ID: <87y4r6yst5.fsf@violet.siamics.net> (raw)
In-Reply-To: <E1XrQDJ-0005kZ-BN@fencepost.gnu.org> (Alfred M. Szmidt's message of "Thu, 20 Nov 2014 06:47:53 -0500")
>>>>> Alfred M Szmidt <ams@gnu.org> writes:
[…]
> If .etags (one argument per line) contains,
> --language=none
> --regex='/[ \t]*function.*=[ \t]*\([^ \t]*\)[ \t]*(/\1/'
> --regex='/###key \(.*\)/\1/'
> --regex='/[ \t]*global[ \t].*/'
> *.m
Isn’t it already possible with xargs(1)? Depending on the shell
in use, it may be possible to, say:
$ etagx () { (cat < .etags ; printf %s\\n "$@") | xargs etags ; }
$ etagx *.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
The last ‘*.m’ bit would require duplicating shell’s own
wildcard expansion in Etags, and it doesn’t seem like an
outright clever idea to me.
--
FSF associate member #7257 np. Afraid to Shoot Strangers — Iron Maiden
next prev parent reply other threads:[~2014-11-20 12:12 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 [this message]
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=87y4r6yst5.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--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.