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.
This commit is contained in:
Michael Albinus 2025-10-12 14:34:53 +02:00
parent d1e173140d
commit 06639a6b9b

View file

@ -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))