[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx 64ccdd3a0d 116/182: Revert "Stabilise search results w
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx 64ccdd3a0d 116/182: Revert "Stabilise search results when scores are equal." |
Date: |
Tue, 13 Dec 2022 03:59:35 -0500 (EST) |
branch: elpa/flx
commit 64ccdd3a0d96e12c34a9bea7483dfaaef79699b4
Author: Brian Suh <brian.j.suh@gmail.com>
Commit: Brian Suh <brian.j.suh@gmail.com>
Revert "Stabilise search results when scores are equal."
This reverts commit 813e56a014eb9a929ad8a58142ee61a35f674276.
---
flx-ido.el | 9 +--------
misc/flx-helm-demo.el | 10 ++--------
2 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/flx-ido.el b/flx-ido.el
index 1b9648fdbd..7cb18b0efb 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)))
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 1be7b124a2 181/182: Merge pull request #110 from skangas/license-fixes, (continued)
- [nongnu] elpa/flx 1be7b124a2 181/182: Merge pull request #110 from skangas/license-fixes, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7b44a5abb2 182/182: Merge pull request #109 from skangas/bump-version, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx db1a328e41 145/182: Revert "enable lexical-binding", ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx f6cd01d759 146/182: Merge branch 'perf/dynamic-programming' into 0.6, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a3d8aa0f9a 164/182: Remove unused and deprecated ‘cl’ library, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 572f5e6013 170/182: Prevent non-heading comments from being treated as such, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx c342eb02a9 179/182: Enforce use of spaces for indentation, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx abd4fe8c2d 085/182: Improve flx-ido-narrowed-matches-hash doc., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 66e1788bd6 103/182: Rename variable in advice to not override original., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 61e7db4922 111/182: Bump version to 0.5., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 64ccdd3a0d 116/182: Revert "Stabilise search results when scores are equal.",
ELPA Syncer <=