From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: emacsclient: support `/' directory separator on w32 Date: Wed, 29 Nov 2006 20:01:42 +0100 Message-ID: <854psidqll.fsf@lola.goethe.zz> References: <20061124054526.72239.qmail@web62511.mail.re1.yahoo.com> <85fyc3oiio.fsf@lola.goethe.zz> <854psjoh67.fsf@lola.goethe.zz> <85r6vnmz3s.fsf@lola.goethe.zz> <857ixfkyqu.fsf@lola.goethe.zz> <456CC2B4.3000003@student.lu.se> <456CD9A7.5010006@student.lu.se> <456D44EE.2080906@student.lu.se> <85mz6ah8y6.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164827073 18125 80.91.229.2 (29 Nov 2006 19:04:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 19:04:33 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org, lekktu@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 29 20:04:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpUjE-0005fT-2i for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 20:04:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpUjC-0007FW-Ik for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 14:04:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpUgt-0005Hl-VA for emacs-devel@gnu.org; Wed, 29 Nov 2006 14:01:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpUgo-0005B2-0r for emacs-devel@gnu.org; Wed, 29 Nov 2006 14:01:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpUgn-0005Aj-6M for emacs-devel@gnu.org; Wed, 29 Nov 2006 14:01:49 -0500 Original-Received: from [212.7.152.120] (helo=mxout03.versatel.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GpUgl-0001ez-By; Wed, 29 Nov 2006 14:01:47 -0500 Original-Received: from mx02.versatel.de (mx01.versatel.de [212.7.146.1]) by mxout03.versatel.de (8.12.11/8.12.11) with ESMTP id kATJ1k5U021349; Wed, 29 Nov 2006 20:01:46 +0100 Original-Received: from lola.goethe.zz (i5387BDBE.versanet.de [83.135.189.190]) by mx02.versatel.de (8.12.11.20060614/8.12.11) with ESMTP id kATJ1kNc013610; Wed, 29 Nov 2006 20:01:46 +0100 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 003D91C29846; Wed, 29 Nov 2006 20:01:42 +0100 (CET) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Wed\, 29 Nov 2006 20\:28\:44 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63058 Archived-At: Eli Zaretskii writes: >> Cc: Eli Zaretskii , lekktu@gmail.com, emacs-devel@gnu.org >> From: David Kastrup >> 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