From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Convenient way to set "root of my project"? Date: Wed, 28 Jan 2009 11:57:34 +0100 Message-ID: <47C7D54A-314B-44B8-B164-18E9CC6E6A69@Web.DE> References: <43f72653-1412-4402-8074-ef5302ab07a0@35g2000pry.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1233140331 30937 80.91.229.12 (28 Jan 2009 10:58:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2009 10:58:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Brett Hoerner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 28 12:00:04 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LS89J-0005bB-Cz for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jan 2009 12:00:01 +0100 Original-Received: from localhost ([127.0.0.1]:45364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LS881-0000HV-H5 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jan 2009 05:58:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LS876-000054-1c for help-gnu-emacs@gnu.org; Wed, 28 Jan 2009 05:57:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LS872-0008WL-Ro for help-gnu-emacs@gnu.org; Wed, 28 Jan 2009 05:57:42 -0500 Original-Received: from [199.232.76.173] (port=39651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LS872-0008WI-NA for help-gnu-emacs@gnu.org; Wed, 28 Jan 2009 05:57:40 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:36738) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LS872-0006y1-82 for help-gnu-emacs@gnu.org; Wed, 28 Jan 2009 05:57:40 -0500 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 220F7FC6144F; Wed, 28 Jan 2009 11:57:37 +0100 (CET) Original-Received: from [91.35.188.38] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.110 #277) id 1LS86y-0001RG-00; Wed, 28 Jan 2009 11:57:37 +0100 In-Reply-To: <43f72653-1412-4402-8074-ef5302ab07a0@35g2000pry.googlegroups.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/qbcKyQDYubYVMDcZyQJoBgl5eKJkExUZv6k7c JNjH5qg5rQ6ekGYYmUc1TVuW/SvUQdxO48dLklN9Wj+If5TfHQ MEBtpuTng1pVRYPNUaRQ== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61727 Archived-At: Am 27.01.2009 um 23:13 schrieb Brett Hoerner: > I'd like for commands like "grep" and "find file" to open at the root > of my "project" (I know emacs has no knowledge of projects). Does > anyone do / use something similar? Why aren't you using find-grep? It's defined as . Changing the "." to another directory, =20 for example an environment variable set before you launch GNU Emacs, =20 the search will start there. You can restrict the search to certain =20 file name(type)s (-name "*.[chm]" or \( -name -o -name -o -name \)). The output can be found in a buffer with =20 hypertext feature: clicking on a line like ./src/nsterm.m:4634: [self keyDown: theEvent]; opens that buffer read-write on the given line. The cursor is =20 positioned at the word you were looking for. -- Greetings Pete When confronted with actual numbers, a mathematician is at a loss. =96 Steffen Hokland