Function: marginalia--base-position
marginalia--base-position is a byte-compiled function defined in
marginalia.el.
Signature
(marginalia--base-position COMPLETIONS)
Documentation
Record the base position of COMPLETIONS.
Source Code
;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia--base-position (completions)
"Record the base position of COMPLETIONS."
;; As a small optimization we track the base position only for file
;; completions, since `marginalia--full-candidate' is currently used only by
;; the file annotation function.
;; bug#75910: category instead of `minibuffer-completing-file-name'
(when minibuffer-completing-file-name
(let ((base (or (cdr (last completions)) 0)))
(unless (= marginalia--base-position base)
(marginalia--cache-reset)
(setq marginalia--base-position base
marginalia--cand-width-max (default-value 'marginalia--cand-width-max)))))
completions)