From eeb7f2bc12bbd14a16e250e3897afa0151dd1d26 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 1 Sep 2023 13:49:22 +0200 Subject: [PATCH] Fix tramp-completion-multi-hop-methods handling * lisp/net/tramp-container.el (tramp-completion-multi-hop-methods): Add methods properly. * lisp/net/tramp.el (tramp-completion-multi-hop-methods): Fix :type. --- lisp/net/tramp-container.el | 4 ++-- lisp/net/tramp.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/net/tramp-container.el b/lisp/net/tramp-container.el index dae7928ba07..2e9ddc64bd3 100644 --- a/lisp/net/tramp-container.el +++ b/lisp/net/tramp-container.el @@ -414,8 +414,8 @@ see its function help for a description of the format." tramp-flatpak-method '((tramp-flatpak--completion-function ""))) -(add-to-list 'tramp-completion-multi-hop-methods - `(,tramp-docker-method ,tramp-podman-method)) + (add-to-list 'tramp-completion-multi-hop-methods tramp-docker-method) + (add-to-list 'tramp-completion-multi-hop-methods tramp-podman-method) ;; Default connection-local variables for Tramp. diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index f7842c849fe..3cd71ab4e71 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3012,7 +3012,7 @@ for all methods. Resulting data are derived from default settings." (defcustom tramp-completion-multi-hop-methods nil "Methods for which to provide completions over multi-hop connections." :version "30.1" - :type 'boolean) + :type '(repeat (string :tag "Method name"))) (defcustom tramp-completion-use-auth-sources auth-source-do-cache "Whether to use `auth-source-search' for completion of user and host names.