help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change working directory in emacs


From: Peter Dyballa
Subject: Re: change working directory in emacs
Date: Fri, 30 Jun 2006 23:27:26 +0200


Am 30.06.2006 um 20:20 schrieb danielx:
When you find file in emacs, how does it it decide which directory 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 current working directory of the shell in *shell* (and probably also *terminal*) buffer, the directory in the which the file resides from which you invoked find-grep, or it's the HOME directory for buffers like *scratch* or *calendar* ... From a *compile* buffer it's probably also its working directory and from the *Completions* buffer it's a bit "context sensible" -- if the buffer lists completions for a file to choose for loading from some directory, the search begins in this directory.

You can find out this also! Just do M-x find-grep RET and you'll see the starting point listed in the beginning of the *grep* buffer. No file be hurt, not even a directory.

but if you've already opened some other files, you begin finding elsewhere. Also,
how can I tell emacs where I want to begin finding? Thanks!

Substitute ``.ยดยด in the actual find command with another directory name!

--
Greetings

  Pete

"We have to expect it, otherwise we would be surprised."







reply via email to

[Prev in Thread] Current Thread [Next in Thread]