Function: cape-wrap-case-fold

cape-wrap-case-fold is a natively compiled function defined in cape.el.

Signature

(cape-wrap-case-fold CAPF &optional NOFOLD)

Documentation

Call CAPF and return a case-insensitive completion table.

If NOFOLD is non-nil return a case sensitive table instead. This function can be used as an advice around an existing Capf.

Source Code

;; Defined in /nix/store/nxaggkd0bn9kr2xfg9hyw77q51q20r8y-emacs-packages-deps/share/emacs/site-lisp/elpa/cape-20260927.2347/cape.el
;;;###autoload
(defun cape-wrap-case-fold (capf &optional nofold)
  "Call CAPF and return a case-insensitive completion table.
If NOFOLD is non-nil return a case sensitive table instead.  This
function can be used as an advice around an existing Capf."
  (pcase (funcall capf)
    (`(,beg ,end ,table . ,plist)
     `(,beg ,end ,(completion-table-case-fold table nofold) ,@plist))))