[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 05/21: company-sort-by-occurrence: handle cons prefixes
From: |
Dmitry Gutov |
Subject: |
[elpa] 05/21: company-sort-by-occurrence: handle cons prefixes |
Date: |
Mon, 03 Feb 2014 17:36:16 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit db1a7ada2b812e3e7ff2be651b6bc2a44e4afba2
Author: Dmitry Gutov <address@hidden>
Date: Thu Jan 30 19:13:14 2014 +0200
company-sort-by-occurrence: handle cons prefixes
---
company.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/company.el b/company.el
index cb46efa..307929e 100644
--- a/company.el
+++ b/company.el
@@ -945,7 +945,8 @@ point. The rest of the list is appended unchanged."
(and (not (memq (get-text-property (point) 'face)
'(font-lock-function-name-face
font-lock-keyword-face)))
- (let ((prefix (company-call-backend 'prefix)))
+ (let* ((prefix (company-call-backend 'prefix))
+ (prefix (or (car-safe prefix) prefix)))
(and (stringp prefix)
(= (length prefix) (- end beg))))))
(push (cons candidate (if (< beg (point))
- [elpa] branch master updated (6265448 -> 7d682e9), Dmitry Gutov, 2014/02/03
- [elpa] 05/21: company-sort-by-occurrence: handle cons prefixes,
Dmitry Gutov <=
- [elpa] 03/21: Lower dabbrev time limits, Dmitry Gutov, 2014/02/03
- [elpa] 07/21: company-sort-by-occurrence: update the docstring, Dmitry Gutov, 2014/02/03
- [elpa] 09/21: company-transformers: improve the defcustom widget, Dmitry Gutov, 2014/02/03
- [elpa] 08/21: Add new option, company-dabbrev-minimum-length, Dmitry Gutov, 2014/02/03
- [elpa] 10/21: Don't generate bogus event in Emacs 24.4, Dmitry Gutov, 2014/02/03
- [elpa] 06/21: Fix #54, Dmitry Gutov, 2014/02/03
- [elpa] 11/21: Render company-preview-frontend after the cursor, Dmitry Gutov, 2014/02/03
- [elpa] 12/21: company-preview* faces: inherit from company-tooltip-[common-]selection, Dmitry Gutov, 2014/02/03
- [elpa] 15/21: Remove NEWS entry for 9b0d457, it's a bugfix, Dmitry Gutov, 2014/02/03
- [elpa] 17/21: company-capf: strip duplicates, Dmitry Gutov, 2014/02/03