Function: eca--path-mappings
eca--path-mappings is a natively compiled function defined in
eca-util.el.
Signature
(eca--path-mappings)
Documentation
Return merged path mappings for translation.
Combines explicit eca-local-to-remote-prefix-map entries with
implicit mappings derived from TRAMP workspace folders. Each
TRAMP folder like "/docker:container:/workspace/project" yields
a mapping ("/docker:container:/workspace/project" . "/workspace/project").
Folders come from eca--path-session when bound, otherwise from
the current buffer's session.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-util.el
(defun eca--path-mappings ()
"Return merged path mappings for translation.
Combines explicit `eca-local-to-remote-prefix-map' entries with
implicit mappings derived from TRAMP workspace folders. Each
TRAMP folder like \"/docker:container:/workspace/project\" yields
a mapping (\"/docker:container:/workspace/project\" . \"/workspace/project\").
Folders come from `eca--path-session' when bound, otherwise from
the current buffer's session."
(append
eca-local-to-remote-prefix-map
(when-let* ((session (or eca--path-session
(ignore-errors (eca-session))))
(folders (eca--session-workspace-folders session)))
(delq nil
(mapcar
(lambda (folder)
(when (file-remote-p folder)
(cons folder (file-local-name folder))))
folders)))))