Function: embark--cache-info--completion-list

embark--cache-info--completion-list is a byte-compiled function defined in embark.el.

Signature

(embark--cache-info--completion-list)

Documentation

Cache information needed for actions in a *Completions* buffer.

Meant to be be added to completion-setup-hook.

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark--cache-info--completion-list ()
  "Cache information needed for actions in a *Completions* buffer.
Meant to be be added to `completion-setup-hook'."
  ;; when completion-setup-hook hook runs, the *Completions* buffer is
  ;; available in the variable standard-output
  (embark--cache-info standard-output)
  (with-current-buffer standard-output
    (when (minibufferp completion-reference-buffer)
      (setq embark--type
            (completion-metadata-get
             (with-current-buffer completion-reference-buffer
               (embark--metadata))
             'category)))))