From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Emacs 22.3 ignores setq default-directory Date: Tue, 30 Jun 2009 00:48:47 +0200 Message-ID: References: <5cc316a8-1a47-4e0c-af2b-27675d5517f5@q3g2000pra.googlegroups.com> <3b31caf90906261504r77be9eegb8a3c73fc2d87ab4@mail.gmail.com> <27c152c00906261521m54d3c81bwfb10138e063eae8f@mail.gmail.com> <27c152c00906291419u49396cb4pbdce347e54bb7468@mail.gmail.com> <27c152c00906291454j72323be9u702ee8c81a02f85@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246339063 25800 80.91.229.12 (30 Jun 2009 05:17:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2009 05:17:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Markus Heller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 07:17:36 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 1MLViq-00020a-Bi for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 07:17:36 +0200 Original-Received: from localhost ([127.0.0.1]:47032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLVip-0003nG-MP for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 01:17:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLPeo-0002DA-4w for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 18:49:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLPeh-00026W-Ro for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 18:49:00 -0400 Original-Received: from [199.232.76.173] (port=37904 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLPeh-00026L-Ld for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 18:48:55 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:59147) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLPeh-00062i-7V for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 18:48:55 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 0EADD105C7C33; Tue, 30 Jun 2009 00:48:54 +0200 (CEST) Original-Received: from [91.35.244.139] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (WEB.DE 4.110 #277) id 1MLPef-000269-00; Tue, 30 Jun 2009 00:48:53 +0200 In-Reply-To: <27c152c00906291454j72323be9u702ee8c81a02f85@mail.gmail.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19dFLPZPjXIIm17VCJoEv0zSa/sM9y2MB+2BM4a PtuuMnuMFkDVb2KUZRgWVl6ua8wnPFqXXzty4TSAheAHomxTyr fnrazETmR9M2YbYI9h2w== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-Mailman-Approved-At: Tue, 30 Jun 2009 00:58:27 -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:65660 Archived-At: Am 29.06.2009 um 23:54 schrieb Markus Heller: > I've just reduced my _emacs to only one line: > > (setq default-directory "h:/") > > so including the slash at the end. I guess I do not set/read CDPATH, > and yet C-x C-f doesn;t bring me to h:/. OK, what's left, is that this variable is buffer-local. There exists =20 a global value (you've set it), and any buffer you create after your =20 init file has been read can have a default-directory value derived =20 from HOME or the working directory from which GNU Emacs launched. And =20= this local value overrides the global one (therefore it's possible =20 that in Bavaria you find so many folks that can't speak German, only =20 Bavarian). My recommendation: create a batch file which first changes working =20 directory to H:\ and then launch the real GNU Emacs executable from =20 within this batch file and working directory! Then it's very likely =20 that the buffers with have set H:\ as default-directory. -- Greetings Pete When in doubt, use brute force. =96 Ken Thompson