help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 22.3 ignores setq default-directory


From: TomSW
Subject: Re: Emacs 22.3 ignores setq default-directory
Date: Tue, 30 Jun 2009 00:18:50 -0700 (PDT)
User-agent: G2/1.0

On Jun 29, 11:54 pm, Markus Heller <helle...@gmail.com> wrote:

> 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:/.

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:/ ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]