From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: help-gnu-emacs@vsbe.com Newsgroups: gmane.emacs.help Subject: current directory Date: Wed, 18 Oct 2006 17:52:25 -0400 Message-ID: <0MKoyl-1GaJKr1BDE-0000ux@mrelay.perfora.net> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1161208392 7432 80.91.229.2 (18 Oct 2006 21:53:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2006 21:53:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 18 23:53:10 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 1GaJLT-0004O2-PH for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Oct 2006 23:53:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaJLT-0000hn-Bg for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Oct 2006 17:53:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GaJKw-0000UK-5t for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 17:52:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GaJKu-0000Ru-2a for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 17:52:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaJKt-0000Re-S5 for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 17:52:27 -0400 Original-Received: from [217.160.230.40] (helo=mout.perfora.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GaJKt-0002kb-KM for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 17:52:27 -0400 Original-Received: from [212.227.126.200] (helo=perfora.net) by mrelay.perfora.net (node=mrelayus0) with ESMTP (Nemesis), id 0MKoyl-1GaJKr1BDE-0000ux; Wed, 18 Oct 2006 17:52:26 -0400 Original-Received: from [217.160.230.156] (helo=infong374 ident=8) by mrvnet.kundenserver.de with smtp (Exim 3.35 #1) id 1GaJKq-0006KX-00 for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 23:52:24 +0200 Original-Received: from [66.17.149.13](IP may be forged by CGI script) by infong374.perfora.net with HTTP; Wed, 18 Oct 2006 17:52:21 -0400 X-Sender-Info: 94947247@infong374 Precedence: bulk Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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:38116 Archived-At: This is about unix-like environment. Say I start emacs with a file in a certain directory, say /a/b/c: cd ~ emacs /a/b/c/file then, while in emacs, I open another file, say /g/d/f/file1. It looks like after this emacs moves its "current directory" to /g/d/f. Now, if I start a shell script through call-process, the shell script's current directory is also /g/d/f, but it depends on being run somewhere in /a/b/c tree. In fact, it looks like emacs changes its internal 'current directory' each time I switch to a file in a different directory, even a previously opened file. Is there a way to prevent emacs from changing its current directory when opening a new file or changing between files being visited? TIA, /vb