emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 34f7a47c9ce: Fix Tramp on MS Windows


From: Michael Albinus
Subject: emacs-29 34f7a47c9ce: Fix Tramp on MS Windows
Date: Sun, 27 Aug 2023 14:06:30 -0400 (EDT)

branch: emacs-29
commit 34f7a47c9ce0581a89b30cc06243788b354f2e7a
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Fix Tramp on MS Windows
    
    * lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name):
    Apply `tramp-drop-volume-letter' consequently.
---
 lisp/net/tramp-sh.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index ffd910b41c4..5a1e73aab2b 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2825,7 +2825,8 @@ the result will be a local, non-Tramp, file name."
     (with-parsed-tramp-file-name name nil
       ;; If connection is not established yet, run the real handler.
       (if (not (tramp-connectable-p v))
-         (tramp-run-real-handler #'expand-file-name (list name))
+         (tramp-drop-volume-letter
+          (tramp-run-real-handler #'expand-file-name (list name)))
        (unless (tramp-run-real-handler #'file-name-absolute-p (list localname))
          (setq localname (concat "~/" localname)))
        ;; Tilde expansion if necessary.  This needs a shell which



reply via email to

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