[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless 3f76b7d1a1 185/204: Delete duplicate regexps
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless 3f76b7d1a1 185/204: Delete duplicate regexps (fix #73) |
Date: |
Tue, 11 Jan 2022 12:58:29 -0500 (EST) |
branch: externals/orderless
commit 3f76b7d1a198627c4f69c378b504afbda03145e8
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Delete duplicate regexps (fix #73)
In the common case where people search for a string with no special
regexp characters and are using both the orderless-regexp and
orderless-literal matching styles, a regexp containing blah\|blah was
produced. This takes care of that case.
---
orderless.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/orderless.el b/orderless.el
index 2981a2ed81..b3b7688419 100644
--- a/orderless.el
+++ b/orderless.el
@@ -376,7 +376,7 @@ as the value of DISPATCHERS."
for regexps = (cl-loop for style in newstyles
for result = (funcall style newcomp)
when result collect `(regexp ,result))
- when regexps collect (rx-to-string `(or ,@regexps))))
+ when regexps collect (rx-to-string `(or ,@(delete-dups regexps)))))
;;; Completion style implementation
- [elpa] externals/orderless b600f88db0 144/204: Add orderless-define-completion-style macro, a new fix for #31, (continued)
- [elpa] externals/orderless b600f88db0 144/204: Add orderless-define-completion-style macro, a new fix for #31, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 94d52640d4 145/204: Change docstring interface for orderless-define-completion-style, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless da876320b3 146/204: Remove all orderless-transient-* variables (fix #34), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c023ee1cbe 150/204: Add option to skip-highlighting as requested by @clemera, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1ed0c4aabb 153/204: Fix typo, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 0ebc884693 154/204: Update manual to not recommend icomplete anymore, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 9d5b95f402 157/204: Merge pull request #40 from minad/master, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 150155ce3c 160/204: Add literal matching to default styles and document (fix #42), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 44935d8962 166/204: Fix bug when all matching styles return nil, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless e85084e733 179/204: Merge pull request #58 from minad/add-face-text-property, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3f76b7d1a1 185/204: Delete duplicate regexps (fix #73),
ELPA Syncer <=
- [elpa] externals/orderless cc15f27107 188/204: orderless-escapable-split-on-space: Fix escaping mistake, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d97a91f6e1 172/204: Merge pull request #51 from minad/disable-initialism, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 9c1b276fe4 193/204: Optimize orderless-try-completion, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 7385bcf3c1 203/204: Assign copyright to FSF, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless cce7072dc3 148/204: Mention completion-category-defaults in the documentation, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b46dbb1045 016/204: Merge branch 'master' of https://github.com/oantolin/orderless, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ac12bc4d54 020/204: Unify calls to save-match-data, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 31fbb254c4 036/204: Update badly outdated commentary, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d2b5d71e75 027/204: Better match face defaults (kindly contributed by Protesilaos), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ff6f57c7c8 046/204: Implement component matching styles, ELPA Syncer, 2022/01/11