Function: completion--lazy-insert-strings-on-scroll

completion--lazy-insert-strings-on-scroll is a byte-compiled function defined in minibuffer.el.gz.

Signature

(completion--lazy-insert-strings-on-scroll WINDOW START)

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completion--lazy-insert-strings-on-scroll (window _start)
  (with-current-buffer (window-buffer window)
    (let ((track-eob (eobp)))
      (completion--lazy-insert-strings)
      ;; Keep point at the end of the updated buffer.
      (when track-eob
        (with-selected-window window
          (goto-char (point-max))
          (recenter -1)))))
  (remove-hook 'window-scroll-functions
               #'completion--lazy-insert-strings-on-scroll t))