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: Markus Heller
Subject: Re: Emacs 22.3 ignores setq default-directory
Date: Tue, 30 Jun 2009 14:15:11 -0700 (PDT)
User-agent: G2/1.0

On Jun 30, 12:18 am, TomSW <address@hidden> wrote:
> On Jun 29, 11:54 pm, Markus Heller <address@hidden> 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:/ ?

No, it doesn't.  Here are the properties of the shortcut used for
emacs-22.1:

Target type: Application
Target location: bin
Target: "C:\Program Files\emacs-22.1\bin\runemacs.exe"
Start in: "C:\Program Files\emacs-22.1\bin"
Shortcut key: None
Run: Normal window
Comment: <empty>

Btw, I get the same behavior if I double-click on runemacs.exe:

In 22.1, C-x C-f takes me to h:/, in 22.3, C-x C-f takes me to  C:
\Program Files\emacs-22.3\bin/

Remember, this is after double-clicking runemacs.exe, so no shortcuts
involved.

Cheers
Markus


reply via email to

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