[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 226943f 10/40: Add a couple of clarifying comments
From: |
Dmitry Gutov |
Subject: |
[elpa] master 226943f 10/40: Add a couple of clarifying comments |
Date: |
Thu, 2 Jan 2020 18:57:01 -0500 (EST) |
branch: master
commit 226943f173e31fe3e38d287b6ee9a0540cc46427
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Add a couple of clarifying comments
---
company-capf.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/company-capf.el b/company-capf.el
index e8b425b..c2bb884 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -32,6 +32,7 @@
(require 'company)
(require 'cl-lib)
+;; Amortizes several calls to a c-a-p-f from the same position.
(defvar company--capf-cache nil)
;; FIXME: Provide a way to save this info once in Company itself
@@ -39,7 +40,11 @@
(defvar-local company-capf--current-completion-data nil
"Value last returned by `company-capf' when called with `candidates'.
For most properties/actions, this is just what we need: the exact values
-that accompanied the completion table that's currently is use.")
+that accompanied the completion table that's currently is use.
+
+`company-capf', however, could be called at some different positions during
+a completion session (most importantly, by `company-sort-by-occurrence'),
+so we can't just use the preceding variable instead.")
(defun company--capf-data ()
(let ((cache company--capf-cache))
- [elpa] master updated (c084cc1 -> ed14c67), Dmitry Gutov, 2020/01/02
- [elpa] master 6274149 03/40: Add Embarcadero clang-based compilers to company-clang-version, Dmitry Gutov, 2020/01/02
- [elpa] master 1120b56 04/40: Merge pull request #908 from matthijsk/embarcadero, Dmitry Gutov, 2020/01/02
- [elpa] master 65fd368 09/40: Support completion style specific sorting (Emacs 27), Dmitry Gutov, 2020/01/02
- [elpa] master 6d808c4 06/40: Revert "speed up company-etags", Dmitry Gutov, 2020/01/02
- [elpa] master ad6ff0e 01/40: Inhibit template field interaction while completion is active, Dmitry Gutov, 2020/01/02
- [elpa] master 226943f 10/40: Add a couple of clarifying comments,
Dmitry Gutov <=
- [elpa] master d497b8c 02/40: speed up company-etags, Dmitry Gutov, 2020/01/02
- [elpa] master 1cb2960 11/40: Use line-wrap in company doc buffer, Dmitry Gutov, 2020/01/02
- [elpa] master f6974e3 07/40: Merge pull request #909 from company-mode/revert-904-master, Dmitry Gutov, 2020/01/02
- [elpa] master ec1fb85 16/40: Fix typos, Dmitry Gutov, 2020/01/02
- [elpa] master 39a74c5 18/40: Add a NEWS entry, Dmitry Gutov, 2020/01/02
- [elpa] master c45c5f9 08/40: Extract company-capf--candidates for ease of debugging, Dmitry Gutov, 2020/01/02
- [elpa] master ccc22eb 05/40: Merge pull request #904 from redguardtoo/master, Dmitry Gutov, 2020/01/02
- [elpa] master 263438e 12/40: Merge pull request #930 from Zetagon/master, Dmitry Gutov, 2020/01/02
- [elpa] master 3cd2b1a 13/40: Update copyright, Dmitry Gutov, 2020/01/02
- [elpa] master d943198 15/40: Add some clarification for the require-match 'never return value, Dmitry Gutov, 2020/01/02