* lisp/net/tramp.el (tramp-file-name-equal-p): Fix docstring.

This commit is contained in:
Michael Albinus 2022-10-18 19:39:34 +02:00
parent cd1a81e572
commit 40d2ed9bab
2 changed files with 4 additions and 1 deletions

View file

@ -125,6 +125,8 @@ been set up by `rfn-eshadow-setup-minibuffer'."
;; eshell.el keeps the path in `eshell-path-env'. We must change it
;; when `default-directory' points to another host.
;; This is fixed in Eshell with Emacs 29.1.
(defun tramp-eshell-directory-change ()
"Set `eshell-path-env' to $PATH of the host related to `default-directory'."
;; Remove last element of `(exec-path)', which is `exec-directory'.

View file

@ -1526,7 +1526,8 @@ same connection. Make a copy in order to avoid side effects."
;; Comparison of file names is performed by `tramp-equal-remote'.
(defun tramp-file-name-equal-p (vec1 vec2)
"Check, whether VEC1 and VEC2 denote the same `tramp-file-name'."
"Check, whether VEC1 and VEC2 denote the same `tramp-file-name'.
LOCALNAME and HOP do not count."
(and (tramp-file-name-p vec1) (tramp-file-name-p vec2)
(equal (tramp-file-name-unify vec1)
(tramp-file-name-unify vec2))))