From 3750612093e5383afa55ea261f47737868660942 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 17 Feb 2022 10:40:52 +0100 Subject: [PATCH] Fix problem with "~" in Tramp * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Remove special handling of "~" in localname. (Bug#53053) --- lisp/net/tramp.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 91c0efb4824..0ffaeb0ce99 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -4571,10 +4571,7 @@ BUFFER might be a list, in this case STDERR is separated." ;; We must disable cygwin-mount file name ;; handlers and alike. (tramp-run-real-handler - #'substitute-in-file-name (list localname)))))))) - ;; "/m:h:~" does not work for completion. We use "/m:h:~/". - (if (and (stringp localname) (string-equal "~" localname)) - (concat filename "/") + #'substitute-in-file-name (list localname))))))) filename)))) (defconst tramp-time-dont-know '(0 0 0 1000) -- 2.39.5