Function: dirvish--completion-table-with-metadata

dirvish--completion-table-with-metadata is a natively compiled function defined in dirvish.el.

Signature

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

Documentation

Return new completion TABLE with METADATA, see completion-metadata.

Source Code

;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
(defun dirvish--completion-table-with-metadata (table metadata)
  "Return new completion TABLE with METADATA, see `completion-metadata'."
  (lambda (string pred action)
    (if (eq action 'metadata)
        `(metadata . ,metadata)
      (complete-with-action action table string pred))))