Function: make-tramp-file-name

make-tramp-file-name is a byte-compiled function defined in tramp.el.gz.

Signature

(make-tramp-file-name &key METHOD USER DOMAIN HOST PORT LOCALNAME HOP)

Documentation

Constructor for objects of type tramp-file-name.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;; Internal functions which must come first:

;; Conversion functions between external representation and
;; internal data structure.  Convenience functions for internal
;; data structure.

;; The basic structure for remote file names.

;; Note: We started autoloading it in tramp-loaddefs.el, because some
;; functions, which needed it, wouldn't work otherwise when unloading
;; / reloading Tramp (Bug#50869).
;; This bug is fixed in Emacs 29, but other parts of Tramp have grown
;; dependencies on having this in tramp-loaddefs.el in the mean time,
;; so .... here we are.
;;;###tramp-autoload(require 'cl-lib)
;;;###tramp-autoload
(progn
  (cl-defstruct (tramp-file-name (:type list) :named)
    method user domain host port localname hop))