From: Michael Albinus Date: Thu, 22 Mar 2018 08:58:56 +0000 (+0100) Subject: Fix commit c24c5dc4a4 X-Git-Tag: emacs-27.0.90~5434 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bbcd5787cb077f8b6c4eba5c1704ad953a298fd7;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 "/")