Function: tramp-recompile-elpa-command-completion-p
tramp-recompile-elpa-command-completion-p is an autoloaded and
byte-compiled function defined in tramp-cmds.el.gz.
Signature
(tramp-recompile-elpa-command-completion-p SYMBOL BUFFER)
Documentation
A predicate for tramp-recompile-elpa.
It is completed by M-x TAB only if package.el is loaded, and
Tramp is an installed ELPA package.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-cmds.el.gz
;;; Recompile on ELPA
;; This function takes action, when `read-extended-command-predicate'
;; is set to `command-completion-default-include-p'.
;;;###tramp-autoload
(defun tramp-recompile-elpa-command-completion-p (_symbol _buffer)
"A predicate for `tramp-recompile-elpa'.
It is completed by `M-x TAB' only if package.el is loaded, and
Tramp is an installed ELPA package."
;; We cannot apply `package-installed-p', this would also return the
;; builtin package.
(and (assq 'tramp (bound-and-true-p package-alist))
(tramp-compat-funcall 'package--user-installed-p 'tramp)))