diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 43a058530c2..ebbe6df06a8 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3044,14 +3044,7 @@ BODY is the backend specific code." tramp--last-hop-directory (tramp-make-tramp-file-name (tramp-dissect-hop-name hop)))) - (let (;; When `tramp-syntax' is `simplified', we need a default method. - (tramp-default-method - (and (string-empty-p tramp-postfix-method-format) - tramp-default-method)) - (tramp-default-method-alist - (and (string-empty-p tramp-postfix-method-format) - tramp-default-method-alist)) - tramp-default-user tramp-default-user-alist + (let (tramp-default-user tramp-default-user-alist tramp-default-host tramp-default-host-alist) ;; Possible completion structures.