Function: ffap-file-remote-p
ffap-file-remote-p is a byte-compiled function defined in ffap.el.gz.
Signature
(ffap-file-remote-p FILENAME)
Documentation
If FILENAME looks remote, return it (maybe slightly improved).
Source Code
;; Defined in /usr/src/emacs/lisp/ffap.el.gz
(defun ffap-file-remote-p (filename)
"If FILENAME looks remote, return it (maybe slightly improved)."
(or (and ffap-ftp-regexp
(string-match ffap-ftp-regexp filename)
;; Convert "/host.com://dir" to "/host:/dir", to handle a dying
;; practice of advertising ftp files as "host.dom://filename".
(if (string-match "//" filename)
;; (replace-match "/" nil nil filename)
(concat (substring filename 0 (1+ (match-beginning 0)))
(substring filename (match-end 0)))
filename))
(and ffap-rfs-regexp
(string-match ffap-rfs-regexp filename)
filename)))