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

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

[elpa] master 3babb6c 08/13: Pass de-propertized candidates to sorting


From: Dmitry Gutov
Subject: [elpa] master 3babb6c 08/13: Pass de-propertized candidates to sorting
Date: Wed, 28 Jan 2015 13:09:09 +0000

branch: master
commit 3babb6c2febc7f639eef076fdf1d413127f439f7
Author: Ingo Lohmar <address@hidden>
Commit: Ingo Lohmar <address@hidden>

    Pass de-propertized candidates to sorting
    
    This is the analogous counterpart to the call of the score change function
---
 company-statistics.el |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/company-statistics.el b/company-statistics.el
index 57cf092..48dc3d2 100644
--- a/company-statistics.el
+++ b/company-statistics.el
@@ -233,8 +233,10 @@ changed for candidates distinguishable by score."
   (setq candidates
         (sort candidates
               (lambda (cand1 cand2)
-                (>  (funcall company-statistics-score-calc cand1)
-                    (funcall company-statistics-score-calc cand2))))))
+                (>  (funcall company-statistics-score-calc
+                             (substring-no-properties cand1))
+                    (funcall company-statistics-score-calc
+                             (substring-no-properties cand2)))))))
 
 ;;;###autoload
 (define-minor-mode company-statistics-mode



reply via email to

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