Function: org-completion-table-with-metadata

org-completion-table-with-metadata is a byte-compiled function defined in org-compat.el.

Signature

(org-completion-table-with-metadata TABLE METADATA)

Documentation

Return new completion TABLE with METADATA.

METADATA should be an alist of completion metadata. See completion-metadata for a list of supported metadata.

Source Code

;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-compat.el
;;; Emacs < 31 compatibility
(if (fboundp 'completion-table-with-metadata)
    (defalias 'org-completion-table-with-metadata #'completion-table-with-metadata)
  (defun org-completion-table-with-metadata (table metadata)
    "Return new completion TABLE with METADATA.
METADATA should be an alist of completion metadata.  See
`completion-metadata' for a list of supported metadata."
    (lambda (string pred action)
      (if (eq action 'metadata)
          `(metadata . ,metadata)
        (complete-with-action action table string pred)))))