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

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

[elpa] master 2d9bf1e 160/173: company--preprocess-candidates: Check tha


From: Dmitry Gutov
Subject: [elpa] master 2d9bf1e 160/173: company--preprocess-candidates: Check that all CANDIDATES are strings
Date: Thu, 23 Jun 2016 00:28:47 +0000 (UTC)

branch: master
commit 2d9bf1e9ce40c7670a39fce8ee7d0ffe1ff2fbc7
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    company--preprocess-candidates: Check that all CANDIDATES are strings
    
    To make #516 fail faster.
---
 company.el |    1 +
 1 file changed, 1 insertion(+)

diff --git a/company.el b/company.el
index e35d7e5..443e638 100644
--- a/company.el
+++ b/company.el
@@ -1202,6 +1202,7 @@ can retrieve meta-data for them."
           (progn (setq res 'done) nil)))))
 
 (defun company--preprocess-candidates (candidates)
+  (cl-assert (cl-every #'stringp candidates))
   (unless (company-call-backend 'sorted)
     (setq candidates (sort candidates 'string<)))
   (when (company-call-backend 'duplicates)



reply via email to

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