unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to find tags file in a recursive way?
@ 2007-06-15  6:33 Weihua Jiang
  2007-06-15 10:36 ` Petter Gustad
  0 siblings, 1 reply; 3+ messages in thread
From: Weihua Jiang @ 2007-06-15  6:33 UTC (permalink / raw)
  To: help-gnu-emacs

That is, emacs will search for tags file in current directory. If not
found, it will search in parent directory and so on. This is a
functionality VIM provided. I find it is quite useful when I
processing deep directories.

How to use such feature in emacs? I get vtags.el from emacswiki. It is
claimed to have such capability. However, I don't know how to use it.
Or, is there other ways to meet my needs?

thanks
Weihua

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to find tags file in a recursive way?
  2007-06-15  6:33 How to find tags file in a recursive way? Weihua Jiang
@ 2007-06-15 10:36 ` Petter Gustad
  2007-06-15 14:34   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Petter Gustad @ 2007-06-15 10:36 UTC (permalink / raw)
  To: help-gnu-emacs

Weihua Jiang <weihua.jiang@gmail.com> writes:

> functionality VIM provided. I find it is quite useful when I
> processing deep directories.

I don't know the answer to your question, but for many purposes I
found the following quite useful:

find . -name '*.[chS]' -print0 | xargs -0 etags

Then use the single TAGS file for the whole source-tree.

Petter

-- 
________________________________________________________________________
Petter Gustad         8'h2B | ~8'h2B        http://www.gustad.com/petter

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to find tags file in a recursive way?
  2007-06-15 10:36 ` Petter Gustad
@ 2007-06-15 14:34   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2007-06-15 14:34 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Petter Gustad <newsmail6@gustad.com>
> Date: 15 Jun 2007 12:36:32 +0200
> Original-Sender: newsmail6@gustad.com
> 
> find . -name '*.[chS]' -print0 | xargs -0 etags

There's no need to use xargs here, etags already knows how to read
file names from its standard input:

  find . -name '*.[chS]' | etags -

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-15 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15  6:33 How to find tags file in a recursive way? Weihua Jiang
2007-06-15 10:36 ` Petter Gustad
2007-06-15 14:34   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).