Function: tramp-crypt-command-completion-p
tramp-crypt-command-completion-p is a byte-compiled function defined
in tramp-crypt.el.gz.
Signature
(tramp-crypt-command-completion-p SYMBOL BUFFER)
Documentation
A predicate for Tramp interactive commands.
They are completed by "M-x TAB" only when encryption support is enabled.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-crypt.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-crypt-command-completion-p (symbol _buffer)
"A predicate for Tramp interactive commands.
They are completed by \"M-x TAB\" only when encryption support is enabled."
(and tramp-crypt-enabled
;; `tramp-crypt-remove-directory' needs to be completed only in
;; case we have already encrypted directories.
(or (not (eq symbol #'tramp-crypt-remove-directory))
tramp-crypt-directories)))