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: change working directory in emacs Date: Fri, 30 Jun 2006 23:27:26 +0200 Message-ID: References: <5124734.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1151702870 2926 80.91.229.2 (30 Jun 2006 21:27:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jun 2006 21:27:50 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 30 23:27:47 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FwQWh-0006lM-3X for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2006 23:27:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwQWg-0008CC-Ap for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2006 17:27:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FwQWR-0008A7-Is for help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 17:27:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FwQWP-00087K-BW for Help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 17:27:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwQWP-00087H-7Y for Help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 17:27:29 -0400 Original-Received: from [217.72.192.221] (helo=fmmailgate01.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FwQjG-0000uA-B8 for Help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 17:40:46 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 6EF1356019E; Fri, 30 Jun 2006 23:27:28 +0200 (CEST) Original-Received: from [84.245.187.120] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #114) id 1FwQWO-0003nJ-00; Fri, 30 Jun 2006 23:27:28 +0200 In-Reply-To: <5124734.post@talk.nabble.com> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: danielx X-Mailer: Apple Mail (2.750) X-Sender: Peter_Dyballa@web.de 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:35769 Archived-At: Am 30.06.2006 um 20:20 schrieb danielx: > When you find file in emacs, how does it it decide which directory =20 > you will > begin finding? Usually, it's the directory where you started emacs, No! Not in Mac OS X, a FreeBSD based UNIX. Here it's either the =20 current working directory of the shell in *shell* (and probably also =20 *terminal*) buffer, the directory in the which the file resides from =20 which you invoked find-grep, or it's the HOME directory for buffers =20 like *scratch* or *calendar* ... =46rom a *compile* buffer it's =20 probably also its working directory and from the *Completions* buffer =20= it's a bit "context sensible" -- if the buffer lists completions for =20 a file to choose for loading from some directory, the search begins =20 in this directory. You can find out this also! Just do M-x find-grep RET and you'll see =20 the starting point listed in the beginning of the *grep* buffer. No =20 file be hurt, not even a directory. > but if you've already opened some other files, you begin finding =20 > elsewhere. Also, > how can I tell emacs where I want to begin finding? Thanks! Substitute ``.=B4=B4 in the actual find command with another directory = name! -- Greetings Pete "We have to expect it, otherwise we would be surprised."