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: David Kastrup
Subject: Re: emacsclient: support `/' directory separator on w32
Date: Wed, 29 Nov 2006 20:01:42 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Cc: Eli Zaretskii <address@hidden>, address@hidden, address@hidden
>> From: David Kastrup <address@hidden>
>> Date: Wed, 29 Nov 2006 10:57:05 +0100
>> 
>> Emacs stores its idea of "relativeness" in `default-directory', a
>> buffer-local variable.
>> 
>> It is not clear how one would attempt to model drive-relativeness on
>> different drives than the one the buffer is in.
>
> If the OS maintains the cwd on each drive, I see no problem to do
> this.  Do you?

Yes.  Emacs maintains a cwd for each buffer in `default-directory' and
hides the OS' idea of the cwd.  The command `cd' does not affect any
buffer except the current one.

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 is possible to make `default-directory' point to a different
>> drive from that of `buffer-file-name'.  Maintaining the old
>> drive-relative position at the same time does not seem possible to
>> do in a reasonably predictable way.
>
> Sorry, I'm not sure I understand the scenario.  Can you show a
> hypothetical series of commands that illustrates the problem(s)?

C-x C-f C:/dir/xxx.txt RET
M-x cd RET D:/woozle RET
C-x C-f D:/junk/ddd.txt RET
M-x cd RET D:poz RET      [ D:/poz or D:/woozle/poz? ]
C-x C-b xxx.txt RET
C-x C-f D:pizza RET [ D:/woozle/pizza, D:/poz/pizza,
                      D:/woozle/poz/pizza  or D:/pizza? ]

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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