Function: tramp-command-completion-p

tramp-command-completion-p is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-command-completion-p SYMBOL BUFFER)

Documentation

A predicate for Tramp interactive commands.

They are completed by M-x TAB only if the current buffer is remote.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;; File name handler functions for completion mode:

;; This function takes action since Emacs 28.1, when
;; `read-extended-command-predicate' is set to
;; `command-completion-default-include-p'.
(defun tramp-command-completion-p (_symbol buffer)
  "A predicate for Tramp interactive commands.
They are completed by `M-x TAB' only if the current buffer is remote."
  (tramp-tramp-file-p (tramp-get-default-directory buffer)))