From 7973d8d5facf11b6408f8e17c9ad11efc7ff6eba Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 2 Jun 2014 17:17:39 +0200 Subject: [PATCH] * net/tramp.el (tramp-handle-unhandled-file-name-directory): Return "/". --- lisp/ChangeLog | 1 + lisp/net/tramp.el | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 10de84b3c41..dff574972a4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index deb89ed5894..36ee449659c 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -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." -- 2.39.5