Function: pcmpl-ssh-config-hosts
pcmpl-ssh-config-hosts is a byte-compiled function defined in
pcmpl-unix.el.gz.
Signature
(pcmpl-ssh-config-hosts)
Documentation
Return a list of hosts found in pcmpl-ssh-config-file.
Source Code
;; Defined in /usr/src/emacs/lisp/pcmpl-unix.el.gz
(defun pcmpl-ssh-config-hosts ()
"Return a list of hosts found in `pcmpl-ssh-config-file'."
(when (and pcmpl-ssh-config-file
(file-readable-p pcmpl-ssh-config-file))
(with-temp-buffer
(insert-file-contents-literally pcmpl-ssh-config-file)
(let (ssh-hosts-list
(case-fold-search t))
(while (re-search-forward "^ *host\\(name\\)? +\\([-.[:alnum:]]+\\)"
nil t)
(push (match-string 2) ssh-hosts-list))
ssh-hosts-list))))