unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* default-directory in windows
@ 2008-05-30 19:46 rahed
  2008-05-30 21:26 ` Eli Zaretskii
  2008-05-30 21:35 ` Lennart Borgman (gmail)
  0 siblings, 2 replies; 5+ messages in thread
From: rahed @ 2008-05-30 19:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

in emacs 22.1 I had (setq default-directory "D:\/my/default/dir/") in my
.emacs.

This no longer works with my 22.2 - it's ignored when I run the emacs. I
had to set the running directory within my windows link to runemacs.exe.

Now when I want to open a file with C-x C-f there's a correct default
path in a minibuffer but with backslashes as directory separators. And
that annoyes me. Though consequently tab completion switches the slashes
to forward ones.

Does default-directory work with 22.2?

-- 
Radek





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default-directory in windows
  2008-05-30 19:46 default-directory in windows rahed
@ 2008-05-30 21:26 ` Eli Zaretskii
  2008-05-31  9:57   ` rahed
  2008-05-30 21:35 ` Lennart Borgman (gmail)
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2008-05-30 21:26 UTC (permalink / raw)
  To: help-gnu-emacs

> From: rahed <raherh@gmail.com>
> Date: Fri, 30 May 2008 19:46:52 +0000
> 
> in emacs 22.1 I had (setq default-directory "D:\/my/default/dir/") in my
> .emacs.
> 
> This no longer works with my 22.2 - it's ignored when I run the emacs.

I cannot reproduce this on my machine with Emacs 22.2: a .emacs with a
single line that sets default-directory works for me.  Can you tell me
what exactly made you to come to the conclusion that this line is
ignored?

And btw, do you really have "\/" after "D:"?  If so, you may wish to
try to remove the backslash: it's unneeded.

> Does default-directory work with 22.2?

It does for me.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default-directory in windows
  2008-05-30 19:46 default-directory in windows rahed
  2008-05-30 21:26 ` Eli Zaretskii
@ 2008-05-30 21:35 ` Lennart Borgman (gmail)
  2008-05-31  9:55   ` rahed
  1 sibling, 1 reply; 5+ messages in thread
From: Lennart Borgman (gmail) @ 2008-05-30 21:35 UTC (permalink / raw)
  To: rahed; +Cc: help-gnu-emacs

rahed wrote:
> Hi,
> 
> in emacs 22.1 I had (setq default-directory "D:\/my/default/dir/") in my
> .emacs.
> 
> This no longer works with my 22.2 - it's ignored when I run the emacs. I
> had to set the running directory within my windows link to runemacs.exe.
> 
> Now when I want to open a file with C-x C-f there's a correct default
> path in a minibuffer but with backslashes as directory separators. And
> that annoyes me.

I just filed a bug report on the backslashes.

> Though consequently tab completion switches the slashes
> to forward ones.
> 
> Does default-directory work with 22.2?

Yes, but default-directory is buffer local. I just noticed that with CVS 
Emacs 23 I get the default-directory you expect in *Scratch* buffer, but 
not in the "welcome buffer". It is unclear to me why the 
default-directory is different in the "welcome buffer".

I am not sure if this is the behaviour in Emacs 22. Could you please check?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default-directory in windows
  2008-05-30 21:35 ` Lennart Borgman (gmail)
@ 2008-05-31  9:55   ` rahed
  0 siblings, 0 replies; 5+ messages in thread
From: rahed @ 2008-05-31  9:55 UTC (permalink / raw)
  To: help-gnu-emacs

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> Yes, but default-directory is buffer local. I just noticed that with
> CVS Emacs 23 I get the default-directory you expect in *Scratch*
> buffer, but not in the "welcome buffer". It is unclear to me why the
> default-directory is different in the "welcome buffer".
>
> I am not sure if this is the behaviour in Emacs 22. Could you please check?

It's the same with 22.2. "welcome buffer" does ignore default-directory
but *Scratch* follows it.

22.1 switches from the "welcome buffer" to *Scratch* automatically when
there's a click or change in it or in the minibuffer so I didn't notice.

-- 
Radek





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: default-directory in windows
  2008-05-30 21:26 ` Eli Zaretskii
@ 2008-05-31  9:57   ` rahed
  0 siblings, 0 replies; 5+ messages in thread
From: rahed @ 2008-05-31  9:57 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

> And btw, do you really have "\/" after "D:"?  If so, you may wish to
> try to remove the backslash: it's unneeded.

Yes, it was unnecessary.

-- 
Radek





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-31  9:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30 19:46 default-directory in windows rahed
2008-05-30 21:26 ` Eli Zaretskii
2008-05-31  9:57   ` rahed
2008-05-30 21:35 ` Lennart Borgman (gmail)
2008-05-31  9:55   ` rahed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).