Function: orderless-annotation

orderless-annotation is a natively compiled function defined in orderless.el.

Signature

(orderless-annotation PRED REGEXP)

Documentation

Match candidates where the annotation matches PRED and REGEXP.

Source Code

;; Defined in /nix/store/x8591dlnsvch2j4brlxddqs0axxy3w60-emacs-packages-deps/share/emacs/site-lisp/elpa/orderless-20260927.2344/orderless.el
(defun orderless-annotation (pred regexp)
  "Match candidates where the annotation matches PRED and REGEXP."
  (if-let* ((fun (orderless--metadata-get 'affixation-function)))
      (lambda (str)
        (unless orderless--annotation
          (let ((orderless--annotation t))
            (cl-loop for s in (cdar (funcall fun (list str)))
                     thereis (orderless--match-p pred regexp s)))))
    (when-let* ((fun (orderless--metadata-get 'annotation-function)))
      (lambda (str)
        (unless orderless--annotation
          (let ((orderless--annotation t))
            (orderless--match-p pred regexp (funcall fun str))))))))