[Top][All Lists]

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

tramp (2.3.1-pre); Can't open file due to wrong local path under MS-Wind

From: Chris Zheng
Subject: tramp (2.3.1-pre); Can't open file due to wrong local path under MS-Windows
Date: Sun, 18 Sep 2016 01:07:18 +0800

Hello, Michael.

With Tramp in master branch of Emacs, I can't open file through
"/sshx:" under MS-Windows. The recipe starting from "emacs -Q" looks

C-x C-f /sshx:address@hidden:/root/ RET

The related messages look like:

Tramp: Inserting ‘/sshx:address@hidden:/root/’...
Tramp: Encoding remote file ‘/sshx:address@hidden:/root/’ with 
‘base64 <%s’...done
Tramp: Decoding local file ‘z:/TEMP/’ with 
Tramp: Inserting ‘/sshx:address@hidden:/root/’...failed
Removing old name: No such file or directory, /TEMP/

I think the problem is due to the commit

Fix Bug#20821

* lisp/net/tramp.el (tramp-file-name-handler):
* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name):
Use `tramp-drop-volume-letter'.  (Bug#20821)

Since the volume letter ("z:") is dropped, the path becomes wrong. I
have read the original report of Bug#20821, but have no idea why the
`tramp-drop-volume-letter' was used here. Comment out the first call
to `tramp-drop-volume-letter' in `tramp-sh-handle-expand-file-name'
did fix the problem for me. Could you please have a look on it?

Please let me know if you want more information.

With many thanks,


reply via email to

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