From: Michael Albinus Date: Mon, 26 Feb 2018 15:23:21 +0000 (+0100) Subject: Fix problem in tramp-handle-substitute-in-file-name X-Git-Tag: emacs-27.0.90~5617 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a566062722a194a7f528867b9a8211a3337d0aa7;p=emacs.git Fix problem in tramp-handle-substitute-in-file-name * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Concat "/" only for local file "~". --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 618d026abde..bae039dba13 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3564,7 +3564,7 @@ support symbolic links." (concat (file-remote-p filename) (substitute-in-file-name localname)))))) ;; "/m:h:~" does not work for completion. We use "/m:h:~/". - (if (string-match "~$" filename) + (if (string-match "^~$" localname) (concat filename "/") filename))))