[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless a21ef6d985 070/204: If matching-styles is nil
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless a21ef6d985 070/204: If matching-styles is nil, assume regexp matching |
Date: |
Tue, 11 Jan 2022 12:58:18 -0500 (EST) |
branch: externals/orderless
commit a21ef6d985482625133013a2f5af25aee7673979
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
If matching-styles is nil, assume regexp matching
---
orderless.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/orderless.el b/orderless.el
index d5edd517a4..58810d07b7 100644
--- a/orderless.el
+++ b/orderless.el
@@ -196,12 +196,15 @@ converted to a list of regexps according to the value of
"Build regexps to match PATTERN.
Consults `orderless-component-matching-styles' to decide what to
match."
- (cl-loop for component in
- (split-string pattern orderless-component-separator t)
- collect
- (rx-to-string
- `(or ,@(cl-loop for style in orderless-component-matching-styles
- collect `(regexp ,(funcall style component)))))))
+ (let ((components (split-string pattern orderless-component-separator t)))
+ (if orderless-component-matching-styles
+ (cl-loop for component in components
+ collect
+ (rx-to-string
+ `(or
+ ,@(cl-loop for style in orderless-component-matching-styles
+ collect `(regexp ,(funcall style component))))))
+ components)))
(defun orderless--prefix+pattern (string table pred)
"Split STRING into prefix and pattern according to TABLE.
- [elpa] externals/orderless 1ccf74ffdb 200/204: Fix small bug in the alist case of try-completion, (continued)
- [elpa] externals/orderless 1ccf74ffdb 200/204: Fix small bug in the alist case of try-completion, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 0f674253a8 199/204: Reword sentence for clarity, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3678f84606 204/204: Add "This file is part of GNU Emacs", ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 5af63c1217 058/204: Merge remote-tracking branch 'github/master', ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 60e70aa53b 062/204: Add autoloads, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b0913a9c56 044/204: Placate checkdoc again, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f2ccc538ef 061/204: Refactor to provide reusable filtering and highlightinf functions, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3b15b2f59d 059/204: Demote Icicles heading, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 80b53ec38e 019/204: Rename lim to limit, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 48ec46518a 037/204: Fix typo in README (thanks Juanjo!), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless a21ef6d985 070/204: If matching-styles is nil, assume regexp matching,
ELPA Syncer <=
- [elpa] externals/orderless 3c4b4815f0 079/204: Refactor strict initialism functions, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f30a3e912c 082/204: Initial implementation of style dispatchers, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 7e83e37870 086/204: Fine-tune dispatcher semantics, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 5897841be4 094/204: Rename default pattern compiler, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 830976770b 102/204: Put integration before related packages in README, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 68e592055c 113/204: The transient variables should not be customizable, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 5b292ac136 118/204: Document custom splitter option, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1d62307cce 125/204: Add badge., ELPA Syncer, 2022/01/11
- [elpa] externals/orderless cbc0109eac 136/204: Merge pull request #28 from b3n/patch-1, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d1c0cbf87b 137/204: Add matching style and dispatcher per category overrides (fix #31), ELPA Syncer, 2022/01/11