From: Michael Albinus Date: Thu, 17 Feb 2022 09:40:52 +0000 (+0100) Subject: Fix problem with "~" in Tramp X-Git-Tag: emacs-29.0.90~2277 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3750612093e5383afa55ea261f47737868660942;p=emacs.git Fix problem with "~" in Tramp * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Remove special handling of "~" in localname. (Bug#53053) --- 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)