Function: orderless--compile

orderless--compile is a byte-compiled function defined in orderless.el.

Signature

(orderless--compile STRING TABLE PRED)

Documentation

Compile STRING to a prefix and a list of regular expressions.

The predicate PRED is used to constrain the entries in TABLE.

Source Code

;; Defined in ~/.emacs.d/elpa/orderless-20260519.1029/orderless.el
(defun orderless--compile (string table pred)
  "Compile STRING to a prefix and a list of regular expressions.
The predicate PRED is used to constrain the entries in TABLE."
  (pcase-let* ((limit (car (completion-boundaries string table pred "")))
               (prefix (substring string 0 limit))
               (pattern (substring string limit))
               (`(,fun . ,regexps) (orderless-compile pattern)))
    (list prefix regexps (orderless--ignore-case-p pattern)
          (orderless--predicate-normalized-and pred fun))))