Function: tramp-parse-default-user-host

tramp-parse-default-user-host is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-parse-default-user-host 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 default settings.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-parse-default-user-host (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 default settings."
  (let ((user (tramp-find-user method nil nil))
	(host (tramp-find-host method nil nil)))
    (when (or user host)
      `((,user ,host)))))