From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TomSW Newsgroups: gmane.emacs.help Subject: Re: Emacs 22.3 ignores setq default-directory Date: Tue, 30 Jun 2009 00:18:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <75461b56-989f-4544-93c9-b8f3952ec0ae@b9g2000yqm.googlegroups.com> References: <5cc316a8-1a47-4e0c-af2b-27675d5517f5@q3g2000pra.googlegroups.com> <3b31caf90906261504r77be9eegb8a3c73fc2d87ab4@mail.gmail.com> <27c152c00906261521m54d3c81bwfb10138e063eae8f@mail.gmail.com> <27c152c00906291419u49396cb4pbdce347e54bb7468@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246352437 31720 80.91.229.12 (30 Jun 2009 09:00:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2009 09:00:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 11:00:30 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLZCY-0002GP-Ai for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 11:00:30 +0200 Original-Received: from localhost ([127.0.0.1]:52093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLZCX-0005GH-Du for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 05:00:29 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b9g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 84.193.193.55 Original-X-Trace: posting.google.com 1246346330 13156 127.0.0.1 (30 Jun 2009 07:18:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 30 Jun 2009 07:18:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b9g2000yqm.googlegroups.com; posting-host=84.193.193.55; posting-account=gXCEPAoAAACaHNwa63AHlGuSCIcCahgr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170455 X-Mailman-Approved-At: Tue, 30 Jun 2009 04:56:47 -0400 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:65674 Archived-At: On Jun 29, 11:54=A0pm, Markus Heller wrote: > I've just reduced my _emacs to only one line: > > (setq default-directory "h:/") > > so including the slash at the end. =A0I guess I do not set/read CDPATH, > and yet C-x C-f doesn;t bring me to h:/. Sorry Markus, I missed the obvious: the documentation of default- directory states " Automatically becomes buffer-local when set in any fashion." - so setting it with setq is not what you want - use (cd "h:/") instead. I tested (cd "c:") and (cd "c:/") but just the setq version. > I'm puzzled. Me too: default-directory is defined as buffer-local in the C source code and there's no sign of it having changed between versions. Perhaps the windows shortcut you used for the older version set the working directory to h:/ ?