dgutov pushed a commit to branch master
in repository elpa.
commit ac15dcb7e92a7de6f3a3706a434455ee33a916a6
Author: Dmitry Gutov <[email protected]>
Date: Mon Feb 3 15:50:56 2014 +0200
company-capf: strip duplicates
---
company-capf.el | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/company-capf.el b/company-capf.el
index f0e5d1b..17ebf7c 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -90,8 +90,9 @@ Requires Emacs 24.1 or newer."
(text-property-not-all start (length arg)
'face value arg))
(length arg)))))
- (`duplicates nil) ;Don't bother.
- (`no-cache t) ;FIXME: Improve!
+ (`duplicates t) ;Don't bother.
+ (`no-cache t) ;Not much can be done here, as long as we handle
+ ;non-prefix matches.
(`meta
(let ((f (plist-get (nthcdr 4 (company--capf-data)) :company-docsig)))
(when f (funcall f arg))))