Function: tramp-get-process

tramp-get-process is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-get-process VEC-OR-PROC)

Documentation

Get the default connection process to be used for VEC-OR-PROC.

Return tramp-cache-undefined in case it doesn't exist.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-get-process (vec-or-proc)
  "Get the default connection process to be used for VEC-OR-PROC.
Return `tramp-cache-undefined' in case it doesn't exist."
  (or (and (tramp-file-name-p vec-or-proc)
	   (get-buffer-process (tramp-buffer-name vec-or-proc)))
      (and (processp vec-or-proc)
	   (tramp-get-process (process-get vec-or-proc 'tramp-vector)))
      tramp-cache-undefined))