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: Re: current directory Date: Thu, 19 Oct 2006 01:16:32 -0400 Message-ID: <0MKp2t-1GaQGe0uDw-0000mm@mrelay.perfora.net> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1161235039 17582 80.91.229.2 (19 Oct 2006 05:17:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2006 05:17:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 19 07:17:18 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 1GaQHM-0004gw-Tz for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Oct 2006 07:17:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaQHM-00056s-32 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Oct 2006 01:17:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GaQGo-00050y-B8 for help-gnu-emacs@gnu.org; Thu, 19 Oct 2006 01:16:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GaQGj-0004uh-Ro for help-gnu-emacs@gnu.org; Thu, 19 Oct 2006 01:16:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaQGj-0004u7-MD for help-gnu-emacs@gnu.org; Thu, 19 Oct 2006 01:16:37 -0400 Original-Received: from [217.160.230.40] (helo=mout.perfora.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GaQGg-0001li-Qw; Thu, 19 Oct 2006 01:16:35 -0400 Original-Received: from [212.227.126.200] (helo=perfora.net) by mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis), id 0MKp2t-1GaQGe0uDw-0000mm; Thu, 19 Oct 2006 01:16:34 -0400 Original-Received: from [217.160.230.156] (helo=infong374 ident=8) by mrvnet.kundenserver.de with smtp (Exim 3.35 #1) id 1GaQGd-0005fC-00; Thu, 19 Oct 2006 07:16:31 +0200 Original-Received: from [67.160.229.147](IP may be forged by CGI script) by infong374.perfora.net with HTTP; Thu, 19 Oct 2006 01:16:30 -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:38125 Archived-At: > > The current directory is different for each buffer. If you want the > script to do the right thing for the file /a/b/c/file, start the > script from the buffer which visits that file, not from the buffer > that visits /g/d/f/file1. > Eli, thank you, I figured this much. So, if I want to look up a variable which is in /a/b/c/file, but the ID file is in the /g/d/f tree - I am screwed. >> I think this is one of the examples when emacs is overdoing its stuff - it >> should have no business changing user's current directory or at least allow >> to configure this behavior. > > You are wrong: Emacs does _exactly_ what the user expects: all > operations from a buffer that visits a file assume the default > directory is the directory of that file. This is not a global value, > each buffer has its own setting of the default directory. > Well, what makes you think that you can speak for all users? Am I not a user? I sure don't expect an editor to do it, no other editor I came across in almost 20 years suffers from this malaise. If someone thinks this behavior is a benefit - at the very least leave the backdoor open to those ho doesn't. cheers, /vb > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >