Function: tramp-flush-connection-property

tramp-flush-connection-property is an autoloaded and byte-compiled function defined in tramp-cache.el.gz.

Signature

(tramp-flush-connection-property KEY PROPERTY)

Documentation

Remove the named PROPERTY of a connection identified by KEY.

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. PROPERTY is set persistent when KEY is a tramp-file-name structure.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-cache.el.gz
;;;###tramp-autoload
(defun tramp-flush-connection-property (key property)
  "Remove the named PROPERTY of a connection identified by KEY.
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.
PROPERTY is set persistent when KEY is a `tramp-file-name' structure."
  (setq key (tramp-file-name-unify key))
  (when-let* ((hash (tramp-get-hash-table key)))
    (remhash property hash))
  (setq tramp-cache-data-changed
	(or tramp-cache-data-changed (tramp-file-name-p key)))
  (tramp-message key 7 "%s" property))