Function: embark-sorted-minibuffer-candidates
embark-sorted-minibuffer-candidates is a byte-compiled function
defined in embark.el.
Signature
(embark-sorted-minibuffer-candidates)
Documentation
Return a sorted list of current minibuffer completion candidates.
This using the same sort order that icomplete and
minibuffer-force-complete use. The intended usage is that you
replace embark-minibuffer-candidates with this function in the
list embark-candidate-collectors.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark-sorted-minibuffer-candidates ()
"Return a sorted list of current minibuffer completion candidates.
This using the same sort order that `icomplete' and
`minibuffer-force-complete' use. The intended usage is that you
replace `embark-minibuffer-candidates' with this function in the
list `embark-candidate-collectors'."
(when (minibufferp)
(cons
(completion-metadata-get (embark--metadata) 'category)
(nconc (cl-copy-list (completion-all-sorted-completions)) nil))))