Function: shadow-make-fullname
shadow-make-fullname is a byte-compiled function defined in
shadowfile.el.gz.
Signature
(shadow-make-fullname HUP &optional HOST NAME)
Documentation
Make a Tramp style fullname out of HUP, a tramp-file-name structure.
Replace HOST, and NAME when non-nil. HOST can also be a remote file name.
Source Code
;; Defined in /usr/src/emacs/lisp/shadowfile.el.gz
(defsubst shadow-make-fullname (hup &optional host name)
"Make a Tramp style fullname out of HUP, a `tramp-file-name' structure.
Replace HOST, and NAME when non-nil. HOST can also be a remote file name."
(when-let* ((hup (copy-tramp-file-name hup)))
(when host
(if (file-remote-p host)
(setq name (or name (and hup (tramp-file-name-localname hup)))
hup (tramp-dissect-file-name (file-remote-p host)))
(setf (tramp-file-name-host hup) host)))
(when name (setf (tramp-file-name-localname hup) name))
(if (null (tramp-file-name-method hup))
(format
"/%s:%s" (tramp-file-name-host hup) (tramp-file-name-localname hup))
(tramp-make-tramp-file-name hup))))