]> code.delx.au - gnu-emacs-elpa/commitdiff
* company/company-capf.el: Don't ignore things like semantic-capf.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jun 2014 03:20:16 +0000 (23:20 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jun 2014 03:20:16 +0000 (23:20 -0400)
.gitignore
packages/company/company-capf.el

index 5de4b9de622b02bb80bf83ed366b6c7cc151d5d2..313d9e5750360baa41c42d21da505b24d09df4e4 100644 (file)
@@ -1,4 +1,5 @@
 *.elc
+*.orig
 *~
 ChangeLog
 core
index 3aaeb137a8000550d61b5be4388651cb6a775235..be7292ab7ee2ab065ea48efd5482a895e14dc054 100644 (file)
   (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)))