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."
  (mapcar
   (lambda (key)
     (and (tramp-file-name-p key)
	  (string-equal method (tramp-file-name-method key))
	  (not (tramp-file-name-localname key))
	  (list (tramp-file-name-user key)
		(tramp-file-name-host key))))
   (hash-table-keys tramp-cache-data)))