From: Michael Albinus Date: Thu, 22 Mar 2018 08:58:56 +0000 (+0100) Subject: Fix commit c24c5dc4a4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=267b82797b6b7efb8b731ba2a9d92454e74c5885;p=emacs.git Fix commit c24c5dc4a4 * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Drop volume letter of localname substitution. Reported by Chris Zheng . --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 5930bcdd4fc..7371d38cbac 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3564,7 +3564,8 @@ support symbolic links." (setq filename (substitute-in-file-name localname)) (setq filename (concat (file-remote-p filename) - (substitute-in-file-name localname)))))) + (tramp-drop-volume-letter + (substitute-in-file-name localname))))))) ;; "/m:h:~" does not work for completion. We use "/m:h:~/". (if (and (stringp localname) (string-equal "~" localname)) (concat filename "/")