]> code.delx.au - gnu-emacs-elpa/commitdiff
company-capf: strip duplicates
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 3 Feb 2014 13:50:56 +0000 (15:50 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 3 Feb 2014 13:50:56 +0000 (15:50 +0200)
company-capf.el

index f0e5d1b01bea619bb229d659b868064c2a9ed4e5..17ebf7cb538208b311ebbf826693fa399b660836 100644 (file)
@@ -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))))