[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 07/14: company-capf: fix when company-point is nil
From: |
Dmitry Gutov |
Subject: |
[elpa] 07/14: company-capf: fix when company-point is nil |
Date: |
Tue, 18 Feb 2014 05:51:02 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit f93584ef1c9c1119dffc899af319d9638f72e055
Author: Dmitry Gutov <address@hidden>
Date: Wed Feb 12 07:52:29 2014 +0200
company-capf: fix when company-point is nil
---
company-capf.el | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/company-capf.el b/company-capf.el
index 1a4342b..77479ae 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -104,7 +104,11 @@ Requires Emacs 24.1 or newer."
(when f (funcall f arg))))
(`annotation
(save-excursion
- (goto-char company-point)
+ ;; FIXME: `company-begin' sets `company-point' after calling
+ ;; `company--begin-new'. We shouldn't rely on `company-point' here,
+ ;; better to cache the capf-data value instead.
+ (when company-point
+ (goto-char company-point))
(let ((f (plist-get (nthcdr 4 (company--capf-data))
:annotation-function)))
(when f (funcall f arg)))))
(`require-match
- [elpa] branch master updated (2e6b4f6 -> cae1efc), Dmitry Gutov, 2014/02/18
- [elpa] 04/14: Fix scrolling up from the last item, Dmitry Gutov, 2014/02/18
- [elpa] 06/14: Introduce company-dabbrev-downcase, Dmitry Gutov, 2014/02/18
- [elpa] 01/14: Set company-added-newline to t if the buffer was modified, Dmitry Gutov, 2014/02/18
- [elpa] 02/14: Don't `company-cancel' twice, Dmitry Gutov, 2014/02/18
- [elpa] 05/14: Fix out-of-bounds error on truncated anno fontification, Dmitry Gutov, 2014/02/18
- [elpa] 07/14: company-capf: fix when company-point is nil,
Dmitry Gutov <=
- [elpa] 03/14: New user option, company-continue-commands, Dmitry Gutov, 2014/02/18
- [elpa] 08/14: company--capf-data: Check that the cdr is cons, not data itself, Dmitry Gutov, 2014/02/18
- [elpa] 09/14: company-capf common-part: look up font-lock-face, Dmitry Gutov, 2014/02/18
- [elpa] 10/14: company-capf: cache the capf data, Dmitry Gutov, 2014/02/18
- [elpa] 14/14: Merge commit '119822078ee3024c2d27017d45ef4578fa36040f' from company, Dmitry Gutov, 2014/02/18
- [elpa] 12/14: company-continue-commands: change the default value, Dmitry Gutov, 2014/02/18
- [elpa] 13/14: Bump the version, Dmitry Gutov, 2014/02/18
- [elpa] 11/14: common-part: rename to `match' and document, Dmitry Gutov, 2014/02/18