]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tramp-completion-multi-hop-methods handling
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 1 Sep 2023 11:49:22 +0000 (13:49 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 1 Sep 2023 11:49:22 +0000 (13:49 +0200)
* 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
lisp/net/tramp.el

index dae7928ba078fff2543dee5391931150d2fa6ab9..2e9ddc64bd32c99a2b8e610e0dc0a30b36f96a77 100644 (file)
@@ -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.
 
index f7842c849fe9c1e2d81600d0c3ee039118004bb1..3cd71ab4e71f933f831eba93a4d77ad0e7bdb014 100644 (file)
@@ -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.