From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: Best way to get a cross-reference listing... Date: Wed, 23 Apr 2003 11:25:23 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4839-Wed23Apr2003112522+0300-eliz@elta.co.il> References: <995FF289C9D69747A09E42992644595405B2370F@penguin.adic.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1051086501 22903 80.91.224.249 (23 Apr 2003 08:28:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2003 08:28:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 10:28:20 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198Fc4-0005xG-00 for ; Wed, 23 Apr 2003 10:28:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198FcX-0007UZ-04 for gnu-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2003 04:28:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198FcO-0007HF-00 for help-gnu-emacs@gnu.org; Wed, 23 Apr 2003 04:28:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198FcE-0006wx-00 for help-gnu-emacs@gnu.org; Wed, 23 Apr 2003 04:28:31 -0400 Original-Received: from thor.inter.net.il ([192.114.186.11]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198FcE-0006w9-00 for help-gnu-emacs@gnu.org; Wed, 23 Apr 2003 04:28:30 -0400 Original-Received: from zaretsky (cable-131-74.inter.net.il [213.8.131.74]) by thor.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AXP19627; Wed, 23 Apr 2003 11:28:28 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <995FF289C9D69747A09E42992644595405B2370F@penguin.adic.com> (brian.auld@adic.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8705 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8705 > From: brian.auld@adic.com > Date: Tue, 22 Apr 2003 07:38:45 -0700 > > Does anyone have any suggestions on (a) how to target a window with > M-x grep-find, or an alternate way to cross-reference a code tree. Download and install the GNU Id-utils package, and then use the "M-x gid" command instead. Not only is it _much_ faster than grep-find, but it also knows about the syntax of C (and other programming languages, so it will never show you false hits due to a substring that matched. It will also automatically search for the symbol at point as the default, and keep the results of each search in a separate buffer, so you could consult them again later. As for the problem of the window that pops up in seemingly random places, this is actually a feature, and my advice is to get used to it: Emacs was not designed for rigid position of its windows. However, you could make that window pop in a different frame (see the variables `special-display-regexps' and `special-display-buffer-names', for more about this feature). > I find if I try to etag the entire linux kernel tree using for example: > > find . -name "*.[chCH]" | xargs etags -o kernel-tags > > the tags never seem to be complete. That's wrong usage: you don't need xargs. Try this instead: find . -name "*.[chCH]" | etags -o kernel-tags - (and I'd also include *.y files in the pattern, btw).