[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cape 60757869e0: cape-dict: Disable sorting
From: |
ELPA Syncer |
Subject: |
[elpa] externals/cape 60757869e0: cape-dict: Disable sorting |
Date: |
Wed, 5 Jul 2023 12:57:36 -0400 (EDT) |
branch: externals/cape
commit 60757869e08c2040edc561eaa282d83c1c1b3027
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
cape-dict: Disable sorting
---
cape.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/cape.el b/cape.el
index 5ecb3030b8..1e20b8a641 100644
--- a/cape.el
+++ b/cape.el
@@ -528,8 +528,9 @@ See the user options `cape-dabbrev-min-length' and
;;;###autoload
(defun cape-dict (&optional interactive)
"Complete word from dictionary at point.
-See the custom option `cape-dict-file'.
-If INTERACTIVE is nil the function acts like a Capf."
+This completion function works best if the dictionary is sorted
+by frequency. See the custom option `cape-dict-file'. If
+INTERACTIVE is nil the function acts like a Capf."
(interactive (list t))
(if interactive
(cape-interactive #'cape-dict)
@@ -539,6 +540,7 @@ If INTERACTIVE is nil the function acts like a Capf."
(completion-table-case-fold
(cape--cached-table beg end #'cape--dict-list)
(not (cape--case-fold-p cape-dict-case-fold)))
+ :sort nil ;; Presorted word list (by frequency)
:category 'cape-dict)
,@cape--dict-properties))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/cape 60757869e0: cape-dict: Disable sorting,
ELPA Syncer <=