From: Michael Albinus Date: Sat, 29 Sep 2018 11:46:59 +0000 (+0200) Subject: Fix minor problem in tramp-handle-substitute-in-file-name X-Git-Tag: emacs-27.0.90~4364 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9284e22676a80789a95c3df3b74ac938a0f5eeaa;p=emacs.git Fix minor problem in tramp-handle-substitute-in-file-name * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Suppress cygwin-mount file name handlers. --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 567701a9b28..723b35c9e7b 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3585,7 +3585,11 @@ support symbolic links." (setq filename (concat (file-remote-p filename) (replace-regexp-in-string - "\\`/+" "/" (substitute-in-file-name localname))))))) + "\\`/+" "/" + ;; We must disable cygwin-mount file name + ;; handlers and alike. + (tramp-run-real-handler + 'substitute-in-file-name (list localname)))))))) ;; "/m:h:~" does not work for completion. We use "/m:h:~/". (if (and (stringp localname) (string-equal "~" localname)) (concat filename "/")