Function: ffap-replace-file-component

ffap-replace-file-component is a byte-compiled function defined in ffap.el.gz.

Signature

(ffap-replace-file-component FULLNAME NAME)

Documentation

In remote FULLNAME, replace path with NAME. May return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/ffap.el.gz
;;; Possibly Remote Resources:

(defun ffap-replace-file-component (fullname name)
  "In remote FULLNAME, replace path with NAME.  May return nil."
  ;; Use efs if loaded, but do not load it otherwise.
  (if (fboundp 'efs-replace-path-component)
      (funcall 'efs-replace-path-component fullname name)
    (and (stringp fullname)
	 (stringp name)
	 (concat (file-remote-p fullname) name))))