Function: marginalia--definition-prefix
marginalia--definition-prefix is a natively 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 /nix/store/hym71by08nv7fpgl7asan3dvidx05yya-emacs-packages-deps/share/emacs/site-lisp/elpa/marginalia-20260926.1228/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 ", "))))