From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fang lun gang Newsgroups: gmane.emacs.help Subject: Re: current directory Date: Fri, 20 Oct 2006 00:01:28 +0800 Organization: no Message-ID: <87u020jnvr.fsf@mail.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161276045 19245 80.91.229.2 (19 Oct 2006 16:40:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2006 16:40:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 19 18:40:42 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 1Gaawh-0001Q4-Fx for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Oct 2006 18:40:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gaawh-00055e-05 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Oct 2006 12:40:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!news.neu.edu.cn!whnet.3322.org!news.szu.edu.cn!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 221.3.96.40 Original-X-Trace: news.cn99.com 1161275496 23230 221.3.96.40 (19 Oct 2006 16:31:36 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Thu, 19 Oct 2006 16:31:36 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:PvR//xsXD/ckpIp56z3K0xavRUQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:142514 Original-To: help-gnu-emacs@gnu.org 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:38137 Archived-At: >>>>> "help-gnu-emacs" == help-gnu-emacs writes: >> >> 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. help-gnu-emacs> cheers, /vb >> >> _______________________________________________ help-gnu-emacs mailing >> list help-gnu-emacs@gnu.org >> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >> Maybe in your case, emacs did to much. But emacs can only choose a policy that preferred by most people in most cases. I guess you would appreciate almost everything it does for you if you come to understand emacs. At least I do. -- Regards, Fang lun gang