Function: marginalia--definition-prefix

marginalia--definition-prefix is a byte-compiled function defined in marginalia.el.

Signature

(marginalia--definition-prefix SYM)

Documentation

Return annotation string if SYM is a definition prefix.

Sometimes symbols which are not yet loaded appear in completion tables if help-enable-completion-autoload is enabled. These symbols originate from the definition-prefixes hash table.

Source Code

;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia--definition-prefix (sym)
  "Return annotation string if SYM is a definition prefix.
Sometimes symbols which are not yet loaded appear in completion tables
if `help-enable-completion-autoload' is enabled.  These symbols
originate from the `definition-prefixes' hash table."
  (when-let* (((bound-and-true-p help-enable-completion-autoload))
              (files (gethash (symbol-name sym) definition-prefixes)))
    (format "[Not yet loaded from %s. See `help-enable-completion-autoload'.]"
            (string-join files ", "))))