Function: orderless--compile-component
orderless--compile-component is a byte-compiled function defined in
orderless.el.
Signature
(orderless--compile-component COMPONENT INDEX TOTAL STYLES DISPATCHERS)
Documentation
Compile COMPONENT at INDEX of TOTAL components with STYLES and DISPATCHERS.
Source Code
;; Defined in ~/.emacs.d/elpa/orderless-20260519.1029/orderless.el
(defun orderless--compile-component (component index total styles dispatchers)
"Compile COMPONENT at INDEX of TOTAL components with STYLES and DISPATCHERS."
(cl-loop
with pred = nil
with (newsty . newcomp) = (orderless--dispatch dispatchers styles
component index total)
for style in (if (functionp newsty) (list newsty) newsty)
for res = (condition-case nil
(funcall style newcomp)
(wrong-number-of-arguments
(when-let* ((res (orderless--compile-component
newcomp index total styles dispatchers)))
(funcall style (car res) (cdr res)))))
if (functionp res) do (cl-callf orderless--predicate-and pred res)
else if res collect (if (stringp res) `(regexp ,res) res) into regexps
finally return
(when (or pred regexps)
(cons pred (and regexps (rx-to-string `(or ,@(delete-dups regexps)) t))))))