From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: file-relative-name and remote files Date: Sat, 08 Mar 2003 21:05:47 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E6A4D1B.8000203@math.ku.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1047153949 16330 80.91.224.249 (8 Mar 2003 20:05:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2003 20:05:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Mar 08 21:05:48 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rkZo-0004FG-00 for ; Sat, 08 Mar 2003 21:05:48 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18rkvF-0008B4-00 for ; Sat, 08 Mar 2003 21:27:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rkZl-0001xH-07 for emacs-devel@quimby.gnus.org; Sat, 08 Mar 2003 15:05:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rkZH-0001sk-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 15:05:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rkZE-0001pU-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 15:05:13 -0500 Original-Received: from [62.84.220.10] (helo=post.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rkZD-0001mY-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 15:05:11 -0500 Original-Received: from math.ku.dk [62.84.221.46] by post.kabelnettet.dk with ESMTP (SMTPD32-7.14) id ADF6684027E; Sat, 08 Mar 2003 21:09:26 +0100 User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en Original-To: emacs-devel@gnu.org In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12182 > > >That just doesn't make sense. It neglects "~". IMHO, a filename >such as "~/../bla" makes perfect sense, and I think that "~" should >be expanded first, before processing "..". > >What do you think? > I see your point. I did not take "~" into consideration. Clearly "~" should be processed before ".."'s and the file handler should process "~". I my opinion that means that everyting after "/foo:" should be handled as something on the remote machine. I.e. "/foo:/.." should expand to "/foo:/" and not to "/". And file-relative-name should return an absolute name when FILENAME and DIRECTORY are on different machines.