From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: emacsclient: support `/' directory separator on w32 Date: Wed, 29 Nov 2006 20:14:37 +0100 Message-ID: <456DDC1D.2030407@student.lu.se> 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> <854psidqll.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164828085 21847 80.91.229.2 (29 Nov 2006 19:21:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 19:21:25 +0000 (UTC) Cc: lekktu@gmail.com, Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 29 20:21:18 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 1GpUyS-0000HQ-UB for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 20:20:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpUyS-0003vE-4e for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 14:20:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpUtP-00088o-Nl for emacs-devel@gnu.org; Wed, 29 Nov 2006 14:14:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpUtM-00085a-RK for emacs-devel@gnu.org; Wed, 29 Nov 2006 14:14:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpUtM-00085M-L2 for emacs-devel@gnu.org; Wed, 29 Nov 2006 14:14:48 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GpUtE-0005hZ-R9; Wed, 29 Nov 2006 14:14:41 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:61821 helo=[192.168.123.121]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GpUtC-0007V1-9S; Wed, 29 Nov 2006 20:14:39 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: David Kastrup In-Reply-To: <854psidqll.fsf@lola.goethe.zz> X-Scan-Result: No virus found in message 1GpUtC-0007V1-9S. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1GpUtC-0007V1-9S 67f265f9801bbe14ede1962acddb68eb 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:63063 Archived-At: David Kastrup wrote: > 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? ] Did not my message get through? My suggestion was when setting default-directory also set the working directory for the OS. Then GetFullPathName will do the name resolving without any problem using the last value for the working directory on the drive specified to GetFullPathName. In this case C-x C-f C:/dir/xxx.txt RET M-x cd RET D:/woozle RET (Sets default-directory to D:/woozle/) C-x C-f D:/junk/ddd.txt RET (Sets default-directory to D:/junk/) M-x cd RET D:poz RET => D:/junk/poz C-x C-b xxx.txt RET (Sets default-directory to C:/dir/) C-x C-f D:pizza RET => D:/junk/pizza