]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix minor problem in tramp-handle-substitute-in-file-name
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 29 Sep 2018 11:46:59 +0000 (13:46 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 29 Sep 2018 11:46:59 +0000 (13:46 +0200)
* lisp/net/tramp.el (tramp-handle-substitute-in-file-name):
Suppress cygwin-mount file name handlers.

lisp/net/tramp.el

index 567701a9b28559b3e6e3e4f1bb357428471f487d..723b35c9e7b3794a28304102fb2d0237c7b78234 100644 (file)
@@ -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 "/")