Function: cape-wrap-prefix-length
cape-wrap-prefix-length is a natively compiled function defined in
cape.el.
Signature
(cape-wrap-prefix-length CAPF LENGTH)
Documentation
Call CAPF and ensure that prefix length is greater or equal than LENGTH.
If the prefix is long enough, enforce auto completion.
Source Code
;; Defined in /nix/store/nxaggkd0bn9kr2xfg9hyw77q51q20r8y-emacs-packages-deps/share/emacs/site-lisp/elpa/cape-20260927.2347/cape.el
;;;###autoload
(defun cape-wrap-prefix-length (capf length)
"Call CAPF and ensure that prefix length is greater or equal than LENGTH.
If the prefix is long enough, enforce auto completion."
(pcase (funcall capf)
(`(,beg ,end ,table . ,plist)
(when (>= (- end beg) length)
`(,beg ,end ,table :company-prefix-length t ,@plist)))))