This function is used by `tramp-set-completion-function', please
see its function help for a description of the format."
(let ((default-directory
- (or (and (member method tramp-completion-multi-hop-methods) tramp--last-hop-directory)
+ (or (and (member method tramp-completion-multi-hop-methods)
+ tramp--last-hop-directory)
tramp-compat-temporary-file-directory))
(program (tramp-get-method-parameter
(make-tramp-file-name :method method) 'tramp-login-program))
tramp-flatpak-method
'((tramp-flatpak--completion-function "")))
+(add-to-list 'tramp-completion-multi-hop-methods
+ `(,tramp-docker-method ,tramp-podman-method))
+
;; Default connection-local variables for Tramp.
(defconst tramp-kubernetes-connection-local-default-variables
for all methods. Resulting data are derived from default settings."
`((,(tramp-find-user method nil nil) ,(tramp-find-host method nil nil))))
-(defcustom tramp-completion-multi-hop-methods `(,tramp-docker-method ,tramp-podman-method)
- "Methods for which to attempt to provide completions over multi-hop connections."
+(defcustom tramp-completion-multi-hop-methods nil
+ "Methods for which to provide completions over multi-hop connections."
:version "30.1"
:type 'boolean)