[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b736562 09/13: Keep properties for score change/calc
From: |
Dmitry Gutov |
Subject: |
[elpa] master b736562 09/13: Keep properties for score change/calc |
Date: |
Wed, 28 Jan 2015 13:09:09 +0000 |
branch: master
commit b736562a2727d90ba89242a650442220c82431e6
Author: Ingo Lohmar <address@hidden>
Commit: Ingo Lohmar <address@hidden>
Keep properties for score change/calc
- no need to remove them
- might be useful information
---
company-statistics.el | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/company-statistics.el b/company-statistics.el
index 48dc3d2..2d913b7 100644
--- a/company-statistics.el
+++ b/company-statistics.el
@@ -221,8 +221,8 @@ one. ALIST structure and cdrs may be changed!"
(defun company-statistics--finished (result)
"After completion, update scores and log."
- (let* ((result (substring-no-properties result))
- (score-updates (funcall company-statistics-score-change result)))
+ (let* ((score-updates (funcall company-statistics-score-change result))
+ (result (substring-no-properties result)))
(company-statistics--scores-add result score-updates)
(company-statistics--log-revert)
(company-statistics--log-store result score-updates)))
@@ -233,10 +233,8 @@ changed for candidates distinguishable by score."
(setq candidates
(sort candidates
(lambda (cand1 cand2)
- (> (funcall company-statistics-score-calc
- (substring-no-properties cand1))
- (funcall company-statistics-score-calc
- (substring-no-properties cand2)))))))
+ (> (funcall company-statistics-score-calc cand1)
+ (funcall company-statistics-score-calc cand2))))))
;;;###autoload
(define-minor-mode company-statistics-mode
- [elpa] master updated (0d834ff -> 2452ff7), Dmitry Gutov, 2015/01/28
- [elpa] master bc3f1ec 02/13: Basic files, Dmitry Gutov, 2015/01/28
- [elpa] master d131452 01/13: Initial commit, Dmitry Gutov, 2015/01/28
- [elpa] master e5553b5 07/13: Fix enabling mode without saved cache file, Dmitry Gutov, 2015/01/28
- [elpa] master b05124b 03/13: Sort candidates by previous completion choices, Dmitry Gutov, 2015/01/28
- [elpa] master 3babb6c 08/13: Pass de-propertized candidates to sorting, Dmitry Gutov, 2015/01/28
- [elpa] master 1c8bf18 04/13: Flexible context handling, refactoring, Dmitry Gutov, 2015/01/28
- [elpa] master b9bc7f0 05/13: Tests and stubs, Dmitry Gutov, 2015/01/28
- [elpa] master c9395db 06/13: First round of typos, Dmitry Gutov, 2015/01/28
- [elpa] master f8d15c7 12/13: Fix elpa URL in docs, Dmitry Gutov, 2015/01/28
- [elpa] master b736562 09/13: Keep properties for score change/calc,
Dmitry Gutov <=
- [elpa] master 1ec2351 10/13: Fix default score calc function for missing global score, Dmitry Gutov, 2015/01/28
- [elpa] master 7b9f171 11/13: Update metadata and documentation for ELPA, Dmitry Gutov, 2015/01/28
- [elpa] master 2452ff7 13/13: Add 'packages/company-statistics/' from commit 'f8d15c7edb2a182f484c5e6eb86f322df473e763', Dmitry Gutov, 2015/01/28