Function: completion-table-with-metadata

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

Signature

(completion-table-with-metadata TABLE METADATA)

Documentation

[Compatibility function for completion-table-with-metadata, defined in Emacs
31.0.50. See (compat) Emacs 31.0.50' for more details.]

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/compat-31.0.0.2/compat-31.el
(compat-defun completion-table-with-metadata (table metadata) ;; <compat-tests:completion-table-with-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))))