Function: tramp-get-completion-methods
tramp-get-completion-methods is a byte-compiled function defined in
tramp.el.gz.
Signature
(tramp-get-completion-methods PARTIAL-METHOD &optional MULTI-HOP)
Documentation
Return all method completions for PARTIAL-METHOD.
If MULTI-HOP is non-nil, return only multi-hop capable methods.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;; This function returns all possible method completions, adding the
;; trailing method delimiter.
(defun tramp-get-completion-methods (partial-method &optional multi-hop)
"Return all method completions for PARTIAL-METHOD.
If MULTI-HOP is non-nil, return only multi-hop capable methods."
(tramp-compat-seq-keep
(lambda (method)
(and method (string-prefix-p (or partial-method "") method)
(or (not multi-hop)
(tramp-multi-hop-p (make-tramp-file-name :method method)))
(tramp-completion-make-tramp-file-name method nil nil nil)))
(mapcar #'car tramp-methods)))