Function: tramp-set-connection-local-variables

tramp-set-connection-local-variables is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-set-connection-local-variables VEC)

Documentation

Set connection-local variables in the connection buffer used for VEC.

If connection-local variables are not supported by this Emacs version, the function does nothing.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-set-connection-local-variables (vec)
  "Set connection-local variables in the connection buffer used for VEC.
If connection-local variables are not supported by this Emacs
version, the function does nothing."
  (with-current-buffer (tramp-get-connection-buffer vec)
    ;; `hack-connection-local-variables-apply' exists since Emacs 26.1.
    (tramp-compat-funcall
     'hack-connection-local-variables-apply
     `(:application tramp
       :protocol    ,(tramp-file-name-method vec)
       :user        ,(tramp-file-name-user-domain vec)
       :machine     ,(tramp-file-name-host-port vec)))))