emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file-truename: wrong value for remote tramp files


From: Michael Albinus
Subject: Re: file-truename: wrong value for remote tramp files
Date: Thu, 05 Aug 2004 12:40:22 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux)

"D. Goel" <address@hidden> writes:

> (file-truename "/ssh:address@hidden:~") returns this: 
> "/ssh:address@hidden:/~"
> .. which is an invalid name, since, for example, find-file cannot load
> it.  (This bug breaks an "optional" operation in one of my utilities
>       "fetch.el")
>
> This bug was produced on a fairly recent CVS emacs.

You can try the following patch (towards tramp.el in Emacs CVS):

--- tramp.el.~1~        Thu Aug  5 12:20:41 2004
+++ tramp.el    Thu Aug  5 12:33:51 2004
@@ -2055,7 +2055,7 @@
 
 (defun tramp-handle-file-truename (filename &optional counter prev-dirs)
   "Like `file-truename' for tramp files."
-  (with-parsed-tramp-file-name filename nil
+  (with-parsed-tramp-file-name (expand-file-name filename) nil
     (let* ((steps        (tramp-split-string localname "/"))
           (localnamedir (tramp-let-maybe directory-sep-char ?/ ;for XEmacs
                           (file-name-as-directory localname)))

> Sincerely,
>
> DG                                 http://gnufans.net/

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]