Function: cape-wrap-case-fold

cape-wrap-case-fold is an autoloaded and byte-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 ~/.emacs.d/elpa/cape-20260804.2303/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))))