Function: tramp-parse-rhosts-group

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

Signature

(tramp-parse-rhosts-group)

Documentation

Return a (user host) tuple allowed to access.

Either user or host may be nil.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-parse-rhosts-group ()
   "Return a (user host) tuple allowed to access.
Either user or host may be nil."
   (let (result
	 (regexp
	  (rx
	   bol (group (regexp tramp-host-regexp))
	   (? (+ blank) (group (regexp tramp-user-regexp))))))
     (when (search-forward-regexp regexp (line-end-position) t)
       (setq result (append (list (match-string 2) (match-string 1)))))
     (forward-line 1)
     result))