[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx 46a1b29482 118/182: Merge pull request #62 from bsuh/f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx 46a1b29482 118/182: Merge pull request #62 from bsuh/fix61 |
Date: |
Tue, 13 Dec 2022 03:59:35 -0500 (EST) |
branch: elpa/flx
commit 46a1b294829b275c6d4e0f999758db910f2c0b99
Merge: 813e56a014 3032920883
Author: Le Wang <l26wang@gmail.com>
Commit: Le Wang <l26wang@gmail.com>
Merge pull request #62 from bsuh/fix61
Fix #61 by reverting fix for #60 and fixing the root problem.
---
flx-ido.el | 11 ++---------
misc/flx-helm-demo.el | 10 ++--------
2 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/flx-ido.el b/flx-ido.el
index 1b9648fdbd..bc85adab89 100644
--- a/flx-ido.el
+++ b/flx-ido.el
@@ -178,14 +178,7 @@ If filtered item count is still greater than
`flx-ido-threshold', then use flex.
finally return matches)))
(flx-ido-decorate (delete-consecutive-dups
(sort matches
- (lambda (x y)
- (let ((scorex (cadr x))
- (scorey (cadr y))
- (strx (car x))
- (stry (car y)))
- (if (= scorex scorey)
- (not (string< stry strx))
- (> scorex scorey)))))
+ (lambda (x y) (> (cadr x) (cadr y))))
t)))
flex-result)))
@@ -238,7 +231,7 @@ Our implementation always uses flex and doesn't care about
substring matches."
(if (string-match re name)
(setq matches (cons item matches)))))
items)
- (delete-consecutive-dups matches t))))
+ (delete-consecutive-dups (nreverse matches) t))))
(defadvice ido-exit-minibuffer (around flx-ido-reset activate)
"Remove flx properties after."
diff --git a/misc/flx-helm-demo.el b/misc/flx-helm-demo.el
index 417941270a..34fb4d17fe 100644
--- a/misc/flx-helm-demo.el
+++ b/misc/flx-helm-demo.el
@@ -26,14 +26,8 @@ The score info we add here is later removed with another
filter."
(setcdr candidate (cons (cdr candidate) score))
candidate)))
(setq res (sort res
- (lambda (x y)
- (let ((scorex (caddr x))
- (scorey (caddr y))
- (strx (car x))
- (stry (car y)))
- (if (= scorex scorey)
- (not (string< stry strx))
- (> scorex scorey))))))
+ (lambda (a b)
+ (> (caddr a) (caddr b)))))
(loop for item in res
for index from 0
for score = (cddr item)
- [nongnu] elpa/flx 1f46d67762 096/182: Update big list experiment., (continued)
- [nongnu] elpa/flx 1f46d67762 096/182: Update big list experiment., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx df036210c6 098/182: Switch to 24.4 delete dup runs algorithm., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3fdaea3ec7 097/182: Respecting flx-ido-threshhold., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3d631fdd38 101/182: Improve behaviour backspacing flx -> flex., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx c75f14fbc2 104/182: Fix docstring bugs from checkdoc., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 6797797426 105/182: Update status in README.md., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a154058007 108/182: Use ido's name canonicalization., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx acd4334893 109/182: Increase threshold to 2000., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a59c08283d 110/182: Simplify caching, implement own flex., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3032920883 117/182: Fix search results changing positions as you type., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 46a1b29482 118/182: Merge pull request #62 from bsuh/fix61,
ELPA Syncer <=
- [nongnu] elpa/flx 5fe7f8a94a 121/182: Add algorithmic optimizations, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b9c2d42b67 122/182: Remove deprecated tests, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 41842ff7b3 123/182: Small performance tweaks, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9c8a17f199 127/182: cadar -> cl-cadar, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx ba2a503873 128/182: use Cask to manage deps, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 279179b5af 133/182: travis show pwd, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 321efc25da 132/182: fix Makefile circular dependency, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 4d625bdfb9 135/182: Test score before building possible match, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a9f26b2840 138/182: Fix caching of nil, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx aba36b564e 139/182: Rename flx-get-matches-worker, ELPA Syncer, 2022/12/13