[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless b770a4de47 05/25: Remove orderless--predicate
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless b770a4de47 05/25: Remove orderless--predicate-or |
Date: |
Wed, 21 Feb 2024 12:58:50 -0500 (EST) |
branch: externals/orderless
commit b770a4de47dd81e6ca7e83026dd91a679f7bf6d7
Author: Omar AntolĂn Camarena <omar.antolin@gmail.com>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Remove orderless--predicate-or
This simplifies the semantics: all predicates are and-ed together.
---
orderless.el | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/orderless.el b/orderless.el
index eb645d0028..706af69010 100644
--- a/orderless.el
+++ b/orderless.el
@@ -414,7 +414,7 @@ non-nil return a pair of a predicate function and the
regexps."
for pred = nil
for regexps = (cl-loop for style in newstyles
for res = (funcall style newcomp)
- if (functionp res) do (cl-callf
orderless--predicate-or pred res)
+ if (functionp res) do (cl-callf
orderless--predicate-and pred res)
else if res collect (if (stringp res) `(regexp ,res)
res))
when regexps collect (rx-to-string `(or ,@(delete-dups regexps))) into
regexps-res
when pred do (cl-callf orderless--predicate-and predicate-res pred)
@@ -443,10 +443,6 @@ normalized string as argument."
"Combine two predicate functions P and Q with `and'."
(or (and p q (lambda (x) (and (funcall p x) (funcall q x)))) p q))
-(defun orderless--predicate-or (p q)
- "Combine two predicate functions P and Q with `or'."
- (or (and p q (lambda (x) (or (funcall p x) (funcall q x)))) p q))
-
(defun orderless--compile (string table pred)
"Compile STRING to a prefix and a list of regular expressions.
The predicate PRED is used to constrain the entries in TABLE."
- [elpa] externals/orderless 604c05f436 09/25: Rename orderless-pattern-compiler to orderless-compile, (continued)
- [elpa] externals/orderless 604c05f436 09/25: Rename orderless-pattern-compiler to orderless-compile, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless a89ac17b41 10/25: orderless-affix-dispatch: Ignore single dispatcher character, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 61815c7ed9 16/25: Alternative approach: Add COMPILE arg to orderless-annotation/without, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 87640f7061 12/25: orderless-without: orderless--compile-component can return nil, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 45d5d457b2 20/25: Update commentary, recommend (setq completion-styles '(orderless basic)), ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 7af2ee23d8 22/25: orderless-compile: Expand docstring, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 9e810f43f0 21/25: Simplify orderless--compile-component, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 91df48c8e1 25/25: Merge pull request #162 from minad/annotation-matching, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 71a4557269 19/25: Rename orderless-without to orderless-not, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless c1def76024 01/25: Pattern compiler: Compile to regexps and a predicate function, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless b770a4de47 05/25: Remove orderless--predicate-or,
ELPA Syncer <=
- [elpa] externals/orderless 10bce1bcde 02/25: orderless-annotation, orderless-without-regexp: Check validity, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 0e9fe2e902 03/25: orderless-annotation: Also check completion-extra-properties, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 7c99212dd3 17/25: Alternative 2: Compile component before passing it to orderless-annotation, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless b56db3eea4 18/25: Turn orderless-annotation/without into a "pattern transformer", ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 37c0083736 14/25: orderless--dispatch: Explicitly specify the arguments, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 766a194b90 13/25: Use orderless--dispatch in orderless--compile-component, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless fe5b6672b4 15/25: Add comment regarding the orderless--component-compiler calls, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless 258b9f54e1 23/25: README: Fix language after renaming of orderless-pattern-compiler, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless f172c80136 04/25: Extend orderless-without-literal comment, ELPA Syncer, 2024/02/21
- [elpa] externals/orderless c484594875 11/25: Update documentation of orderless-style-dispatchers, ELPA Syncer, 2024/02/21