Function: ido-is-slow-ftp-host
ido-is-slow-ftp-host is a byte-compiled function defined in ido.el.gz.
Signature
(ido-is-slow-ftp-host &optional DIR)
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-is-slow-ftp-host (&optional dir)
(and (or ido-slow-ftp-hosts ido-slow-ftp-host-regexps)
(setq dir (or dir ido-current-directory))
;; (featurep 'ange-ftp)
;; (ange-ftp-ftp-name dir)
(string-match
(if ido-enable-tramp-completion
"\\`/\\([^/]+[@:]\\)*\\([^@/:][^@/:]+\\):"
"\\`/\\([^/:]*@\\)?\\([^@/:][^@/:]+\\):/")
dir)
(let ((host (substring dir (match-beginning 2) (match-end 2))))
(or (member host ido-slow-ftp-hosts)
(let ((re ido-slow-ftp-host-regexps))
(while (and re (not (string-match (car re) host)))
(setq re (cdr re)))
re)))))