[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 78e8d0a 3/7: company-ispell: Filter returned candidates lo
From: |
Dmitry Gutov |
Subject: |
[elpa] master 78e8d0a 3/7: company-ispell: Filter returned candidates locally |
Date: |
Thu, 22 Jan 2015 23:06:52 +0000 |
branch: master
commit 78e8d0a9616dc45ea8ac2bace32aeedba8c5f6d2
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
company-ispell: Filter returned candidates locally
Resolves #284
---
company-ispell.el | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/company-ispell.el b/company-ispell.el
index 1561bee..7334caa 100644
--- a/company-ispell.el
+++ b/company-ispell.el
@@ -60,8 +60,15 @@ If nil, use `ispell-complete-word-dict'."
(interactive (company-begin-backend 'company-ispell))
(prefix (when (company-ispell-available)
(company-grab-word)))
- (candidates (lookup-words arg (or company-ispell-dictionary
- ispell-complete-word-dict)))
+ (candidates
+ (let ((words (lookup-words arg (or company-ispell-dictionary
+ ispell-complete-word-dict)))
+ (completion-ignore-case t))
+ (if (string= arg "")
+ ;; Small optimization.
+ words
+ ;; Work around issue #284.
+ (all-completions arg words))))
(sorted t)
(ignore-case 'keep-prefix)))
- [elpa] master updated (ca6142f -> c7f675e), Dmitry Gutov, 2015/01/22
- [elpa] master 78e8d0a 3/7: company-ispell: Filter returned candidates locally,
Dmitry Gutov <=
- [elpa] master 75f578e 2/7: company--create-lines: Handle keep-prefix with multiple-width chars in prefix, Dmitry Gutov, 2015/01/22
- [elpa] master 9c60a4f 4/7: Update copyright years, Dmitry Gutov, 2015/01/22
- [elpa] master d27bdf6 5/7: Add company-next-page and company-previous-page, Dmitry Gutov, 2015/01/22
- [elpa] master a4ac0de 6/7: Bump the version, Dmitry Gutov, 2015/01/22
- [elpa] master c7f675e 7/7: Merge commit 'a4ac0dead8e9cb440c1f8aec9141d6c64bad4933' from company, Dmitry Gutov, 2015/01/22
- [elpa] master 7c02be2 1/7: * packages/company/test/clang-tests.el: Add copyright notice, Dmitry Gutov, 2015/01/22