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: Thu, 27 Feb 2003 15:22:58 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E5E1F42.3020705@math.ku.dk> References: <3E5A8D95.9090803@math.ku.dk> <3E5C8BAC.8000201@math.ku.dk> 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 1046355844 28323 80.91.224.249 (27 Feb 2003 14:24:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 14:24:04 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oOx7-0007ML-00 for ; Thu, 27 Feb 2003 15:24:01 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18oPE4-0006IR-00 for ; Thu, 27 Feb 2003 15:41:32 +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 18oOws-0000Zk-04 for emacs-devel@quimby.gnus.org; Thu, 27 Feb 2003 09:23:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oOwX-0000OK-00 for emacs-devel@gnu.org; Thu, 27 Feb 2003 09:23:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oOwR-0000I9-00 for emacs-devel@gnu.org; Thu, 27 Feb 2003 09:23:19 -0500 Original-Received: from [62.84.220.10] (helo=mail.dantel.dk) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oOwC-0008OI-00; Thu, 27 Feb 2003 09:23:04 -0500 Original-Received: from math.ku.dk [62.84.221.46] by mail.dantel.dk with ESMTP (SMTPD32-7.13) id A05013B800EE; Thu, 27 Feb 2003 15:27:28 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-To: rms@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:12002 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12002 > > >I see that (expand-file-name "/larsh@galois.math.ku.dk:/../emacs") >returns "/larsh@galois.math.ku.dk:/../emacs". That is surprising; >I expected it to return "/emacs". > >It would probably be easy to change this, and that change would >probably fix the whole problem. But was this done intentionally? >Does it serve a specific purpose? > I doubt that it is intentional, but I don't know. The call is handlede by Tramp, so it is a Tramp matter. One more problem: The syntax to invoke the Tramp file handler is "\`/[^/:]+:". So the handler is not invoked in the call (expand-file-name "/emacs/../larsh@galois.math.ku.dk:."). The call returns "/larsh@galois.math.ku.dk:." but it should return "/larsh@galois.math.ku.dk:/home/l/larsh".