Function: cider--client-tramp-filename
cider--client-tramp-filename is a byte-compiled function defined in
cider-common.el.
Signature
(cider--client-tramp-filename NAME &optional BUFFER)
Documentation
Return the tramp filename for path NAME relative to BUFFER.
If BUFFER has a tramp prefix, it will be added as a prefix to NAME. If the resulting path is an existing tramp file, it returns the path, otherwise, nil.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-common.el
(defun cider--client-tramp-filename (name &optional buffer)
"Return the tramp filename for path NAME relative to BUFFER.
If BUFFER has a tramp prefix, it will be added as a prefix to NAME.
If the resulting path is an existing tramp file, it returns the path,
otherwise, nil."
(let* ((buffer (or buffer (current-buffer)))
(name (replace-regexp-in-string "^file:" "" name))
(name (concat (cider-tramp-prefix buffer) name)))
(if (and (tramp-tramp-file-p name)
(tramp-handle-file-exists-p name))
name)))