[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx 9fec96087b 010/182: fix sort modifying list by side-ef
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx 9fec96087b 010/182: fix sort modifying list by side-effect bug |
Date: |
Tue, 13 Dec 2022 03:59:14 -0500 (EST) |
branch: elpa/flx
commit 9fec96087b787154aeced2c4efce5555ee7feba6
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
fix sort modifying list by side-effect bug
---
flx-scratch-helm.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/flx-scratch-helm.el b/flx-scratch-helm.el
index bd0c89b66f..29f74251a5 100644
--- a/flx-scratch-helm.el
+++ b/flx-scratch-helm.el
@@ -39,9 +39,9 @@ The score info we add here is later removed with another
filter."
(setq candidate (cons (copy-sequence
candidate) candidate)))
(setcdr candidate (cons (cdr candidate) score))
candidate)))
- (sort res
- (lambda (a b)
- (> (caddr a) (caddr b))))
+ (setq res (sort res
+ (lambda (a b)
+ (> (caddr a) (caddr b)))))
(loop for item in res
for index from 0
for score = (cddr item)
- [nongnu] branch elpa/flx created (now 7b44a5abb2), ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 331ef6f109 001/182: first commit, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 2348893f90 012/182: flx-ido always use filename cache, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 387d1ee048 008/182: update ido implementation with ido demo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 47ef1bf377 006/182: update license, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9fec96087b 010/182: fix sort modifying list by side-effect bug,
ELPA Syncer <=
- [nongnu] elpa/flx d295ba6a2f 007/182: add test list, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b1702e2aa1 054/182: Add colon to non-word characters., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 5a23bc7da3 003/182: update tests, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 64b8e0f934 027/182: work around ido bug 10994, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 8605b4b421 026/182: don't do caching when reading file names, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 8849b39816 066/182: Make flx-capital-p behave correctly for non-latin words, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx ad87db4348 068/182: Make flx-ido depend on flx on package level, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 225fae97c9 070/182: Mention Marmalade in the README, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 43f78d4815 090/182: Touch-up commentary., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx dd428a8cc6 095/182: Add some debug statements., ELPA Syncer, 2022/12/13