tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The “//” fix confuses cygwin-mount


From: Chris Zheng
Subject: The “//” fix confuses cygwin-mount
Date: Thu, 22 Mar 2018 08:50:46 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/27.0 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO)

Dear List,

The commit c24c5dc4a4cc18e7f1ec949efcfe1d4bae541d02 confuses the
cygwin-mount that serves the translation from “/c/Windows” to
“C:/Windows/” under MS-Windows. With the above commit and
cygwin-mount,

(substitute-in-file-name "/method:host:/foo")
⇒ "/method:host:c:/msys64/foo"

While before that commit the result is "/method:host:/foo".

The reason is that in ‘tramp-handle-substitute-in-file-name’ from
line 3563

(setq filename
      (concat (file-remote-p filename)
              (substitute-in-file-name localname))))))
              ^ (substitute-in-file-name "/foo") results in "c:/msys64/foo".

Previously the whole "/method:host:/foo" was translated by the
‘substitute-in-file-name’ thus no problem occurs.

Could you please have a look at this.

Thank you very much,

Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]