Function: tramp-set-connection-property
tramp-set-connection-property is an autoloaded and byte-compiled
function defined in tramp-cache.el.gz.
Signature
(tramp-set-connection-property KEY PROPERTY VALUE)
Documentation
Set the named PROPERTY of a connection to VALUE.
KEY identifies the connection, it is either a process or a
tramp-file-name structure. A special case is nil, which is
used to cache connection properties of the local machine. If KEY
is tramp-cache-undefined, nothing is set.
PROPERTY is set persistent when KEY is a tramp-file-name structure.
Return VALUE.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-cache.el.gz
;;;###tramp-autoload
(defun tramp-set-connection-property (key property value)
"Set the named PROPERTY of a connection to VALUE.
KEY identifies the connection, it is either a process or a
`tramp-file-name' structure. A special case is nil, which is
used to cache connection properties of the local machine. If KEY
is `tramp-cache-undefined', nothing is set.
PROPERTY is set persistent when KEY is a `tramp-file-name' structure.
Return VALUE."
(setq key (tramp-file-name-unify key))
(when-let ((hash (tramp-get-hash-table key)))
(puthash property value hash))
(setq tramp-cache-data-changed
(or tramp-cache-data-changed (tramp-file-name-p key)))
(tramp-message key 7 "%s %s" property value)
value)