Function: tramp-debug-buffer-command-completion-p
tramp-debug-buffer-command-completion-p is a byte-compiled function
defined in tramp.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.el.gz
;; This function takes action since Emacs 28.1, 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."
(with-current-buffer buffer
(string-equal
(buffer-substring (point-min) (min (+ (point-min) 10) (point-max)))
";; Emacs:")))