Function: marginalia--completion-metadata

marginalia--completion-metadata is a natively compiled function defined in marginalia.el.

Signature

(marginalia--completion-metadata)

Documentation

Get completion metadata.

Source Code

;; Defined in /nix/store/hym71by08nv7fpgl7asan3dvidx05yya-emacs-packages-deps/share/emacs/site-lisp/elpa/marginalia-20260926.1228/marginalia.el
(defun marginalia--completion-metadata ()
  "Get completion metadata."
  (let* ((end (minibuffer-prompt-end))
         (pt (max 0 (- (point) end))))
    (completion-metadata (buffer-substring-no-properties end (+ end pt))
                         minibuffer-completion-table
                         minibuffer-completion-predicate)))