* net/tramp.el (tramp-handle-unhandled-file-name-directory): Return "/".

This commit is contained in:
Michael Albinus
2014-06-02 17:17:39 +02:00
parent fd9fba8bd3
commit 7973d8d5fa
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
* net/tramp.el (with-tramp-progress-reporter, tramp-call-process):
Add traces.
(tramp-handle-unhandled-file-name-directory): Return "/".
2014-06-02 Wilson Snyder <wsnyder@wsnyder.org>

View File

@@ -3340,8 +3340,9 @@ User is always nil."
(defun tramp-handle-unhandled-file-name-directory (_filename)
"Like `unhandled-file-name-directory' for Tramp files."
;; With Emacs 23, we could simply return `nil'. But we must keep it
;; for backward compatibility.
(expand-file-name "~/"))
;; for backward compatibility. "~/" cannot be returned, because
;; there might be machines without a HOME directory (like hydra).
"/")
(defun tramp-handle-set-visited-file-modtime (&optional time-list)
"Like `set-visited-file-modtime' for Tramp files."