Function: tramp-parse-connection-properties

tramp-parse-connection-properties is an autoloaded and byte-compiled function defined in tramp-cache.el.gz.

Signature

(tramp-parse-connection-properties METHOD)

Documentation

Return a list of (user host) tuples allowed to access for METHOD.

This function is added always in tramp-get-completion-function for all methods. Resulting data are derived from connection history.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-cache.el.gz
;;;###tramp-autoload
(defun tramp-parse-connection-properties (method)
  "Return a list of (user host) tuples allowed to access for METHOD.
This function is added always in `tramp-get-completion-function'
for all methods.  Resulting data are derived from connection history."
  (seq-uniq
   (tramp-compat-seq-keep
    (lambda (key)
      (let ((tramp-verbose 0))
	(and (tramp-file-name-p key)
	     (string-equal method (tramp-file-name-method key))
	     (not (tramp-file-name-localname key))
	     (tramp-get-method-parameter
	      key 'tramp-completion-use-cache tramp-completion-use-cache)
	     (list (tramp-file-name-user key)
		   (tramp-file-name-host key)))))
    (hash-table-keys tramp-cache-data))))