summaryrefslogtreecommitdiff
path: root/orderless.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-02-15 13:40:47 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2024-02-15 13:40:47 +0100
commite49e86776bf5077cd0846b5c6f1ca19e14b0dd87 (patch)
treeb69c6259fb2dcec6bc7bf4463f307f6da6fc10e0 /orderless.el
parentd536e44f37715b1cd56c1121ef4f5744c83ed182 (diff)
Revert "orderless-pattern-compiler: Create fewer intermediate data structures"
This reverts commit ebd2b841de857c568b547446a27ed9e58e1354eb.
Diffstat (limited to 'orderless.el')
-rw-r--r--orderless.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/orderless.el b/orderless.el
index 5d5c569..45bd5c8 100644
--- a/orderless.el
+++ b/orderless.el
@@ -384,8 +384,8 @@ as the value of DISPATCHERS."
when (functionp newstyles) do (setq newstyles (list newstyles))
for regexps = (cl-loop for style in newstyles
for result = (funcall style newcomp)
- when result collect result)
- when regexps collect (string-join (delete-dups regexps) "\\|")))
+ when result collect `(regexp ,result))
+ when regexps collect (rx-to-string `(or ,@(delete-dups regexps)))))
;;; Completion style implementation