Function: cider-make-tramp-prefix
cider-make-tramp-prefix is a byte-compiled function defined in
cider-common.el.
Signature
(cider-make-tramp-prefix METHOD USER HOST &optional PORT)
Documentation
Construct a Tramp file prefix from METHOD, USER, HOST, PORT.
It originated from Tramp's tramp-make-tramp-file-name. The original was
forced to make a full file name with with-parsed-tramp-file-name, with no
prefix-only option.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-common.el
(defun cider-make-tramp-prefix (method user host &optional port)
"Construct a Tramp file prefix from METHOD, USER, HOST, PORT.
It originated from Tramp's `tramp-make-tramp-file-name'. The original was
forced to make a full file name with `with-parsed-tramp-file-name', with no
prefix-only option."
(concat tramp-prefix-format
(unless (zerop (length method))
(concat method tramp-postfix-method-format))
(unless (zerop (length user))
(concat user tramp-postfix-user-format))
(when host
(if (string-match tramp-ipv6-regexp host)
(concat tramp-prefix-ipv6-format host tramp-postfix-ipv6-format)
host))
(when port
(concat "#" port))
tramp-postfix-host-format))