Function: tramp-file-name-unify
tramp-file-name-unify is a byte-compiled function defined in
tramp.el.gz.
Signature
(tramp-file-name-unify VEC)
Documentation
Unify VEC by removing localname and hop from tramp-file-name structure.
Objects returned by this function compare equal if they refer to the
same connection. Make a copy in order to avoid side effects.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-file-name-unify (vec)
"Unify VEC by removing localname and hop from `tramp-file-name' structure.
Objects returned by this function compare `equal' if they refer to the
same connection. Make a copy in order to avoid side effects."
(when (tramp-file-name-p vec)
(setq vec (copy-tramp-file-name vec))
(setf (tramp-file-name-localname vec) nil
(tramp-file-name-hop vec) nil))
vec)