From 06639a6b9b8e60f1b5b4a69b137e503b56fb7453 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 12 Oct 2025 14:34:53 +0200 Subject: [PATCH] Fix regression in Tramp file name completion * lisp/net/tramp.el (tramp-make-tramp-file-name): Do not use the hop for the "archive" method. --- lisp/net/tramp.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 3834c950c93..546ffa5d638 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -1939,6 +1939,9 @@ expected to be a string, which will be used." (when (cadr args) (setq localname (and (stringp (cadr args)) (cadr args)))) (when hop + ;; Do not keep the hop for the "archive" method. + (when (string-equal method tramp-archive-method) + (setq hop nil)) ;; Keep hop in file name for completion or when indicated. (unless (or minibuffer-completing-file-name tramp-show-ad-hoc-proxies) (setq hop nil))