Function: completions--should-show-p
completions--should-show-p is a byte-compiled function defined in
minibuffer.el.gz.
Signature
(completions--should-show-p METADATA &optional FORCE-EAGER-UPDATE)
Documentation
Return non-nil if *Completions* should be automatically updated or displayed.
Based on METADATA.
If FORCE-EAGER-UPDATE is non-nil, acts as if the eager-update property is always true.
Source Code
;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completions--should-show-p (metadata &optional force-eager-update)
"Return non-nil if *Completions* should be automatically updated or displayed.
Based on METADATA.
If FORCE-EAGER-UPDATE is non-nil, acts as if the eager-update property
is always true."
(and
;; eager-update is enabled or FORCE-EAGER-UPDATE is true
;; (the latter is when we're first starting up completion)
(or force-eager-update
(if (eq completion-eager-update 'auto)
(completion-metadata-get metadata 'eager-update)
completion-eager-update))
;; eager-display is enabled or *Completions* is already displayed.
(or (if (eq completion-eager-display 'auto)
(completion-metadata-get metadata 'eager-display)
completion-eager-display)
(minibuffer--completions-visible))))