Function: tramp-parse-file

tramp-parse-file is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-parse-file FILENAME FUNCTION)

Documentation

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

User is always nil.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;; Generic function.
(defun tramp-parse-file (filename function)
  "Return a list of (user host) tuples allowed to access.
User is always nil."
  ;; On Windows, there are problems in completion when
  ;; `default-directory' is remote.
  (let ((default-directory tramp-compat-temporary-file-directory))
    (when (file-readable-p filename)
      (with-temp-buffer
	(insert-file-contents-literally filename)
	(goto-char (point-min))
        (cl-loop while (not (eobp)) collect (funcall function))))))