Function: projection--cache-vars-completion-table

projection--cache-vars-completion-table is a natively compiled function defined in projection-core-cache.el.

Signature

(projection--cache-vars-completion-table CACHE-VARS)

Documentation

Generate a completion-table for reading CACHE-VARS.

Source Code

;; Defined in /nix/store/j6y921qbdmdqxjnd43iibapbig3p4hai-emacs-packages-deps/share/emacs/site-lisp/elpa/projection-20260614.1822/projection-core-cache.el
(defun projection--cache-vars-completion-table (cache-vars)
  "Generate a completion-table for reading CACHE-VARS."
  (projection-completion--completion-table
   :candidates cache-vars
   :category 'projection-cache-vars
   :annotation-function
   (projection-completion--annotation-function
    :key-function (lambda (cand)
                    (setq cand (caddr (assoc cand cache-vars)))
                    (when (projection--cache-get-with-predicate-cached-p cand)
                      (setq cand (projection--cache-get-with-predicate-value cand)))
                    (format "%S" cand)))
   :group-function
   (lambda (cand transform)
     (if transform cand
       (car (alist-get cand cache-vars nil nil #'string-equal))))))