Function: tramp-active-command-completion-p
tramp-active-command-completion-p is an autoloaded and byte-compiled
function defined in tramp.el.gz.
Signature
(tramp-active-command-completion-p SYMBOL BUFFER)
Documentation
A predicate for Tramp interactive commands.
They are completed by M-x TAB only if there's an active connection or buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;; This function takes action, when `read-extended-command-predicate'
;; is set to `command-completion-default-include-p'.
;;;###tramp-autoload
(defun tramp-active-command-completion-p (_symbol _buffer)
"A predicate for Tramp interactive commands.
They are completed by `M-x TAB' only if there's an active connection or buffer."
;; (declare (tramp-suppress-trace t))
(or (and (hash-table-p tramp-cache-data)
(not (zerop (hash-table-count tramp-cache-data))))
(tramp-list-remote-buffers)))