Function: completions--start-eager-display

completions--start-eager-display is a byte-compiled function defined in minibuffer.el.gz.

Signature

(completions--start-eager-display)

Documentation

Maybe display the *Completions* buffer when the user is next idle.

Only displays if completion-eager-display is t, or if eager display has been requested by the completion table.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completions--start-eager-display ()
  "Maybe display the *Completions* buffer when the user is next idle.

Only displays if `completion-eager-display' is t, or if eager display
has been requested by the completion table."
  (when completion-eager-display
    (when (or (eq completion-eager-display t)
              (completion-metadata-get
               (completion-metadata
                (buffer-substring-no-properties (minibuffer-prompt-end) (point))
                minibuffer-completion-table minibuffer-completion-predicate)
               'eager-display))
      (setq completion-eager-display--timer
            (run-with-idle-timer 0 nil #'completions--eager-display)))))