emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vertico bf76000 06/11: Rename vertico--pred to vertico-


From: Protesilaos Stavrou
Subject: [elpa] externals/vertico bf76000 06/11: Rename vertico--pred to vertico--sort-predicate
Date: Thu, 8 Apr 2021 07:11:16 -0400 (EDT)

branch: externals/vertico
commit bf7600075729a1b692fe122fac0a1d26e8c1fda9
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Rename vertico--pred to vertico--sort-predicate
---
 vertico.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vertico.el b/vertico.el
index af778fd..0a23876 100644
--- a/vertico.el
+++ b/vertico.el
@@ -136,7 +136,7 @@
 (defvar-local vertico--keep nil
   "Keep current candidate index `vertico--index'.")
 
-(defun vertico--pred (x y)
+(defun vertico--sort-predicate (x y)
   "Sorting predicate which compares X and Y."
   (or (< (cdr x) (cdr y))
       (and (= (cdr x) (cdr y))
@@ -194,7 +194,7 @@
                          (+ (lsh (gethash (car cand) vertico--history-hash 
#xFFFF) 13)
                             (length (car cand)))))
       (setq cand (cdr cand))))
-  (setq candidates (sort candidates #'vertico--pred))
+  (setq candidates (sort candidates #'vertico--sort-predicate))
   ;; Drop decoration from the candidates
   (let ((cand candidates))
     (while cand



reply via email to

[Prev in Thread] Current Thread [Next in Thread]