Function: eca--path-local-to-remote
eca--path-local-to-remote is a natively compiled function defined in
eca-util.el.
Signature
(eca--path-local-to-remote PATH)
Documentation
Translate a local Emacs PATH to a remote path.
First strips any TRAMP prefix from PATH, then applies path
mappings (explicit eca-local-to-remote-prefix-map plus TRAMP
workspace folder mappings). The longest matching prefix wins.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-util.el
(defun eca--path-local-to-remote (path)
"Translate a local Emacs PATH to a remote path.
First strips any TRAMP prefix from PATH, then applies path
mappings (explicit `eca-local-to-remote-prefix-map' plus TRAMP
workspace folder mappings). The longest matching prefix wins."
(let ((local-path (or (file-remote-p path 'localname) path)))
(eca--path--translate (expand-file-name local-path) #'car #'cdr t)))