branch: externals/cape commit 60757869e08c2040edc561eaa282d83c1c1b3027 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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))))