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 09:46:38 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E69ADEE.7000801@math.ku.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============98560279072136026==" X-Trace: main.gmane.org 1047113190 6815 80.91.224.249 (8 Mar 2003 08:46:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2003 08:46:30 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Mar 08 09:46:29 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 18rZyP-0001ll-00 for ; Sat, 08 Mar 2003 09:46:29 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18raJb-0001zh-00 for ; Sat, 08 Mar 2003 10:08:24 +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 18rZyO-00037Y-01 for emacs-devel@quimby.gnus.org; Sat, 08 Mar 2003 03:46:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rZy1-000362-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 03:46:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rZy0-00034G-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 03:46:05 -0500 Original-Received: from [62.84.220.10] (helo=post.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rZxz-00034C-00 for emacs-devel@gnu.org; Sat, 08 Mar 2003 03:46:04 -0500 Original-Received: from math.ku.dk [62.84.221.46] by post.kabelnettet.dk with ESMTP (SMTPD32-7.14) id AECE4200282; Sat, 08 Mar 2003 09:50:22 +0100 User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130 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:12168 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12168 --===============98560279072136026== content-type: multipart/alternative; boundary="------------010603050909000100090700" --------------010603050909000100090700 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > > > Lars Hansen writes: > >>> 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". >> >> > >So maybe expand-file-name should re-invoke itself until it reaches a >fixpoint? > -- A preposition is not a good thing to end a sentence with. > IMHO expand-file-name should remove ".."'s *before* calling file handlers. --------------010603050909000100090700 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Lars Hansen <larsh@math.ku.dk> writes:
> 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".
    

So maybe expand-file-name should re-invoke itself until it reaches a
fixpoint?
-- A preposition is not a good thing to end a sentence with.
IMHO expand-file-name should remove ".."'s *before* calling file
handlers.

--------------010603050909000100090700-- --===============98560279072136026== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --===============98560279072136026==--