[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 60456a52f6 2/5: Fix default match function insertion
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 60456a52f6 2/5: Fix default match function insertion in matchfns |
Date: |
Fri, 13 May 2022 04:58:28 -0400 (EDT) |
branch: elpa/helm
commit 60456a52f6793472599bcda98a3727d323d0224c
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Fix default match function insertion in matchfns
Otherwise we may miss the default function.
---
helm-source.el | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/helm-source.el b/helm-source.el
index e56b1efcd9..36f92fcd0b 100644
--- a/helm-source.el
+++ b/helm-source.el
@@ -1007,11 +1007,12 @@ or `search'."
(migemo
(append helm-mm-default-match-functions
defmatch '(helm-mm-3-migemo-match)))
- ((and defmatch (not diacritics))
- (append helm-mm-default-match-functions defmatch))
(diacritics
- (append (list 'helm-mm-exact-match
- 'helm-mm-3-match-on-diacritics)))
+ (delq nil
+ `(helm-mm-exact-match
+ ,@defmatch helm-mm-3-match-on-diacritics)))
+ (defmatch
+ (append helm-mm-default-match-functions defmatch))
(t helm-mm-default-match-functions)))
(search (cond (defsearch-strict)
((and migemo diacritics)
@@ -1022,11 +1023,12 @@ or `search'."
(migemo
(append helm-mm-default-search-functions
defsearch '(helm-mm-3-migemo-search)))
- ((and defsearch (not diacritics))
- (append helm-mm-default-search-functions defsearch))
(diacritics
- `(helm-mm-exact-search
- ,@defsearch helm-mm-3-search-on-diacritics))
+ (delq nil
+ `(helm-mm-exact-search
+ ,@defsearch helm-mm-3-search-on-diacritics)))
+ (defsearch
+ (append helm-mm-default-search-functions defsearch))
(t helm-mm-default-search-functions))))))