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

Constructs a Tramp file prefix from METHOD, USER, HOST, PORT.

It originated from Tramp's tramp-make-tramp-file-name. The original be forced to make full file name with with-parsed-tramp-file-name, not providing prefix only option.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-common.el
(defun cider-make-tramp-prefix (method user host &optional port)
  "Constructs a Tramp file prefix from METHOD, USER, HOST, PORT.
It originated from Tramp's `tramp-make-tramp-file-name'.  The original be
forced to make full file name with `with-parsed-tramp-file-name', not providing
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))