emacs-devel
[Top][All Lists]
Advanced

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

Re: emacsclient: support `/' directory separator on w32


From: Lennart Borgman
Subject: Re: emacsclient: support `/' directory separator on w32
Date: Thu, 30 Nov 2006 09:14:35 +0100
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Eli Zaretskii wrote:
Cc: address@hidden, address@hidden, address@hidden
From: David Kastrup <address@hidden>
Date: Wed, 29 Nov 2006 20:39:31 +0100

Eli Zaretskii <address@hidden> writes:

Cc: address@hidden, address@hidden, address@hidden
From: David Kastrup <address@hidden>
Date: Wed, 29 Nov 2006 20:01:42 +0100

If you let the OS maintain its per-application idea of a
drive-relative cwd, cd _will_ affect more than the current buffer.  If
the current buffer is visiting C:/whatever/file.txt, and I did a cd to
C:/bubbles in a different buffer, should C-x C-f c:junk.txt in the
buffer of file.txt open C:/bubbles/junk.txt, C:/junk.txt or
C:/whatever/junk.txt?
It should probably visit the file C:/whatever/junk.txt, since Emacs
behaves as if the cwd changes whenever you switch buffers.
But if the buffer in question has its cwd on a different drive, it is
not possible in the buffer to assign meaning to a directory relative
to a different drive.

Unless we store the cwd on each drive in a buffer-local variable, like
we do with default-directory.


Or if we let MS Windows take care of this by setting the working directory for Emacs as I suggested. (However I am not suggesting to do that now.)




reply via email to

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