Function: tramp-connectable-p
tramp-connectable-p is a byte-compiled function defined in
tramp.el.gz.
Signature
(tramp-connectable-p VEC-OR-FILENAME)
Documentation
Check if it is possible to connect the remote host without side-effects.
This is true, if either the remote host is already connected, or if we are not in completion mode.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-connectable-p (vec-or-filename)
"Check if it is possible to connect the remote host without side-effects.
This is true, if either the remote host is already connected, or if we are
not in completion mode."
(or (not non-essential)
;; We check this for the process related to `tramp-buffer-name';
;; otherwise `make-process' wouldn't run ever when
;; `non-essential' is non-nil.
(and-let* ((tramp-verbose 0)
(vec (tramp-ensure-dissected-file-name vec-or-filename))
(p (tramp-get-process vec))
((process-live-p p))
((tramp-get-connection-property p "connected"))))))