all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.