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

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

[elpa] 50/52: company-capf.el: Don't ignore things like semantic-capf


From: Dmitry Gutov
Subject: [elpa] 50/52: company-capf.el: Don't ignore things like semantic-capf
Date: Tue, 01 Jul 2014 11:53:35 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 53a9ff687d6ce5980d8bb59b2b077e0eeecdee07
Author: Stefan Monnier <address@hidden>
Date:   Sun Jun 15 03:20:25 2014 +0000

    company-capf.el: Don't ignore things like semantic-capf
---
 company-capf.el |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/company-capf.el b/company-capf.el
index 4a3c083..cc075df 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -36,9 +36,12 @@
   (remove-hook 'company-completion-finished-hook 'company--capf-clear-data t))
 
 (defun company--capf-data ()
-  ;; Ignore tags-completion-at-point-function because it subverts company-etags
-  ;; in the default value of company-backends, where the latter comes later.
-  (cl-letf* (((default-value 'completion-at-point-functions) nil)
+  (cl-letf* (((default-value 'completion-at-point-functions)
+              ;; Ignore tags-completion-at-point-function because it subverts
+              ;; company-etags in the default value of company-backends, where
+              ;; the latter comes later.
+              (remove 'tags-completion-at-point-function
+                      (default-value 'completion-at-point-functions)))
              (data (run-hook-wrapped 'completion-at-point-functions
                                      ;; Ignore misbehaving functions.
                                      #'completion--capf-wrapper 'optimist)))



reply via email to

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