Function: corfu--done
corfu--done is a natively compiled function defined in corfu.el.
Signature
(corfu--done STR STATUS CANDS)
Documentation
Exit completion and call the exit function with STR and STATUS.
Lookup STR in CANDS to restore text properties.
Source Code
;; Defined in /nix/store/za087xxa0z5mirfbbagrp0qfaqnfn5wb-emacs-packages-deps/share/emacs/site-lisp/elpa/corfu-20260913.1527/corfu.el
(defun corfu--done (str status cands)
"Exit completion and call the exit function with STR and STATUS.
Lookup STR in CANDS to restore text properties."
(let ((completion-extra-properties (nth 4 completion-in-region--data)))
;; For successful completions, amalgamate undo operations,
;; such that completion can be undone in a single step.
(undo-amalgamate-change-group corfu--change-group)
(corfu-quit)
(corfu--exit-function str status cands)))