Function: completions--background-update

completions--background-update is a byte-compiled function defined in minibuffer.el.gz.

Signature

(completions--background-update)

Documentation

Try to update *Completions* without blocking input.

This function uses while-no-input and sets non-essential to t so that the update is less likely to interfere with user typing.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completions--background-update ()
  "Try to update *Completions* without blocking input.

This function uses `while-no-input' and sets `non-essential' to t
so that the update is less likely to interfere with user typing."
  (while-no-input
    (let ((non-essential t))
      (redisplay)
      (cond
       (completion-in-region-mode (completion-help-at-point t))
       ((completion--eager-update-p (minibuffer-prompt-end))
        (minibuffer-completion-help))))))