]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problem with "~" in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 17 Feb 2022 09:40:52 +0000 (10:40 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 17 Feb 2022 09:40:52 +0000 (10:40 +0100)
* lisp/net/tramp.el (tramp-handle-substitute-in-file-name):
Remove special handling of "~" in localname.  (Bug#53053)

lisp/net/tramp.el

index 91c0efb48245431d01a100d18ae629367e38fd13..0ffaeb0ce99bde9a809284b017cebc5819190de3 100644 (file)
@@ -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)