From 1e777f71f23761469c31d29faddb10a35177848c Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 2 Jan 2026 11:22:34 +0100 Subject: [PATCH] Fix Tramp completion for default method "-" * lisp/net/tramp.el (tramp-completion-handle-file-name-all-completions): Keep `tramp-default-method{-alist}' in order to get completion functions for `tramp-default-method-marker'. --- lisp/net/tramp.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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.