Function: cape-wrap-prefix-length
cape-wrap-prefix-length is an autoloaded and byte-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 ~/.emacs.d/elpa/cape-20260804.2303/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)))))