emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/orderless f6394f19f3 163/204: orderless-default-pattern


From: ELPA Syncer
Subject: [elpa] externals/orderless f6394f19f3 163/204: orderless-default-pattern-compiler: Ignore nil components
Date: Tue, 11 Jan 2022 12:58:27 -0500 (EST)

branch: externals/orderless
commit f6394f19f3993831dadd91046090d7a2498facca
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    orderless-default-pattern-compiler: Ignore nil components
---
 orderless.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/orderless.el b/orderless.el
index 37c4278bfc..921fa0931c 100644
--- a/orderless.el
+++ b/orderless.el
@@ -190,7 +190,7 @@ is determined by the values of `completion-ignore-case',
   "Match COMPONENT as a regexp."
   (condition-case nil
       (progn (string-match-p component "") component)
-    (invalid-regexp "\0")))
+    (invalid-regexp nil)))
 
 (defalias 'orderless-literal #'regexp-quote
   "Match a component as a literal string.
@@ -397,7 +397,9 @@ compilers."
      (rx-to-string
       `(or
         ,@(cl-loop for style in newstyles
-                   collect `(regexp ,(funcall style newcomp))))))))
+                   for result = (funcall style newcomp)
+                   if result
+                   collect `(regexp ,result)))))))
 
 ;;; Completion style implementation
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]