Function: cape-interactive
cape-interactive is a natively compiled function defined in cape.el.
Signature
(cape-interactive &rest CAPFS)
Documentation
Complete interactively with the given CAPFS.
Source Code
;; Defined in /nix/store/nxaggkd0bn9kr2xfg9hyw77q51q20r8y-emacs-packages-deps/share/emacs/site-lisp/elpa/cape-20260927.2347/cape.el
;;;###autoload
(defun cape-interactive (&rest capfs)
"Complete interactively with the given CAPFS."
(let* ((ctx (and (consp (car capfs)) (car capfs)))
(capfs (if ctx (cdr capfs) capfs))
(completion-at-point-functions
(if ctx
(mapcar (lambda (f) `(lambda () (let ,ctx (funcall ',f)))) capfs)
capfs)))
(unless (completion-at-point)
(user-error "%s: No completions"
(mapconcat (lambda (fun)
(if (symbolp fun)
(symbol-name fun)
"anonymous-capf"))
capfs ", ")))))