Function: tramp-debug-buffer-command-completion-p
tramp-debug-buffer-command-completion-p is a byte-compiled function
defined in tramp-message.el.gz.
Signature
(tramp-debug-buffer-command-completion-p SYMBOL BUFFER)
Documentation
A predicate for Tramp interactive commands.
They are completed by M-x TAB only in Tramp debug buffers.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-message.el.gz
;; This function takes action, when `read-extended-command-predicate'
;; is set to `command-completion-default-include-p'.
(defun tramp-debug-buffer-command-completion-p (_symbol buffer)
"A predicate for Tramp interactive commands.
They are completed by `M-x TAB' only in Tramp debug buffers."
(declare (tramp-suppress-trace t))
(with-current-buffer buffer
(string-equal
(buffer-substring (point-min) (min (+ (point-min) 10) (point-max)))
";; Emacs:")))