[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cape b3c5e4ec69 018/146: cape-merge-capfs: Fix sorting
From: |
ELPA Syncer |
Subject: |
[elpa] externals/cape b3c5e4ec69 018/146: cape-merge-capfs: Fix sorting |
Date: |
Sun, 9 Jan 2022 20:57:39 -0500 (EST) |
branch: externals/cape
commit b3c5e4ec690704c317bf9e9566cb72b465a4f597
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
cape-merge-capfs: Fix sorting
---
cape.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/cape.el b/cape.el
index a14a7fa36f..612f4351dc 100644
--- a/cape.el
+++ b/cape.el
@@ -481,9 +481,13 @@
(ht (make-hash-table :test #'equal)))
(cl-loop for (beg2 end2 table . plist) in results do
(when (and (= beg beg2) (= end end2))
- (setq table (all-completions "" table (plist-get plist
:predicate))
- candidates (nconc candidates table))
- (cl-loop for cand in table do (puthash cand plist ht))))
+ (let* ((pred (plist-get plist :predicate))
+ (metadata (completion-metadata "" table pred))
+ (sort (or (completion-metadata-get metadata
'display-sort-function)
+ #'identity))
+ (cands (funcall sort (all-completions "" table
pred))))
+ (setq candidates (nconc candidates cands))
+ (cl-loop for cand in cands do (puthash cand plist ht)))))
(list beg end
(lambda (str pred action)
(if (eq action 'metadata)
- [elpa] branch externals/cape created (now 5ccece0e34), ELPA Syncer, 2022/01/09
- [elpa] externals/cape 4b3f29e565 001/146: Initial commit, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 139ffe8720 002/146: Add license, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 8ed1e4e9cd 005/146: Remove parens from annotations, ELPA Syncer, 2022/01/09
- [elpa] externals/cape a8d00aa3ef 006/146: Add defcustoms, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 97eacd933d 016/146: README: Update example, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 9833045077 017/146: Add completion categories, ELPA Syncer, 2022/01/09
- [elpa] externals/cape b3c5e4ec69 018/146: cape-merge-capfs: Fix sorting,
ELPA Syncer <=
- [elpa] externals/cape 26b822db0a 011/146: Add MELPA badges, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 84c128ae9b 013/146: Add cape-merge-capfs (Fix #2), ELPA Syncer, 2022/01/09
- [elpa] externals/cape 6c124b6cfd 015/146: README: Add some justification for the name :), ELPA Syncer, 2022/01/09
- [elpa] externals/cape 63ded5fde4 028/146: Improve cape-company-to-capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape f270456b5d 041/146: Improve cape-dabbrev-capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape a8e10cf7ae 014/146: Update README, ELPA Syncer, 2022/01/09
- [elpa] externals/cape d6b13d3055 027/146: Fix no-cache call, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 0e60999893 032/146: cape-ispell: Fix caching, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 7325c5002f 035/146: Update README, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 0a374042c9 003/146: README: Update configuration, ELPA Syncer, 2022/01/09