From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Heller Newsgroups: gmane.emacs.help Subject: Re: Emacs 22.3 ignores setq default-directory Date: Mon, 29 Jun 2009 16:00:45 -0700 Message-ID: <27c152c00906291600q48134d0dpbb296721adbae1de@mail.gmail.com> 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 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246339146 25947 80.91.229.12 (30 Jun 2009 05:19:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2009 05:19:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 07:18:59 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 1MLVkA-0002Ls-K4 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 07:18:58 +0200 Original-Received: from localhost ([127.0.0.1]:47522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLVk9-0004aB-Mk for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 01:18:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLPqE-0004Tx-VR for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 19:00:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLPqA-0004Tl-MB for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 19:00:50 -0400 Original-Received: from [199.232.76.173] (port=33910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLPqA-0004Ti-IY for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 19:00:46 -0400 Original-Received: from mail-px0-f192.google.com ([209.85.216.192]:62001) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLPqA-0007bd-0e for help-gnu-emacs@gnu.org; Mon, 29 Jun 2009 19:00:46 -0400 Original-Received: by pxi30 with SMTP id 30so590070pxi.14 for ; Mon, 29 Jun 2009 16:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JsaX2e+BY4F5MpqYeQ6IISJPjkRg/c+5+FIzK093zL8=; b=Yc/PUETrvDVKmoFzfYmkYkezYvSZmgRGDENCNYoqfWfv0MurI/Yi6G3OSrf5uh4fgW ZrsJjPrKG/V5eaMhk+t49o9c2CtAENSX1zNnD1MA2t28TZODVSEqTIYY581nybZEsEvG IbH+Rris+qtlAp88f06swOmxE4hjDo33H9dXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=U4r+KXInU2W49IXKcQQ+SGpszS38v9Wl3T2OkxET46ojzKoexf3rv0YYOF3hMTQwzA GcjDb9qmQPG2EE2WdgwnRLJUvWXgDBG6GJYJGHdp74GNOpP8k4xPf8WezirxyFaGP26Z aLhlNKoc8jWj0SeUPAfjln3LhT7DCUkJqpNkQ= Original-Received: by 10.115.111.3 with SMTP id o3mr12465477wam.210.1246316445040; Mon, 29 Jun 2009 16:00:45 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 30 Jun 2009 01:00:10 -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:65661 Archived-At: On Mon, Jun 29, 2009 at 3:48 PM, Peter Dyballa wrote: > > 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. =A0I 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 a > global value (you've set it), and any buffer you create after your init f= ile > has been read can have a default-directory value derived from HOME or the > working directory from which GNU Emacs launched. And this local value > overrides the global one (therefore it's possible that in Bavaria you fin= d > so many folks that can't speak German, only Bavarian). Being from Munich, this is an excellent explanation :) This must be a difference between 22.1 and 22.3 then ... > My recommendation: create a batch file which first changes working direct= ory > to H:\ and then launch the real GNU Emacs executable from within this bat= ch > file and working directory! Then it's very likely that the buffers with h= ave > set H:\ as default-directory. Done, and works. Thanks for your help! Cheers Markus > -- > Greetings > > =A0Pete > > When in doubt, use brute force. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=96 Ken Th= ompson > >