From: Stefan Monnier Date: Sun, 15 Jun 2014 03:20:16 +0000 (-0400) Subject: * company/company-capf.el: Don't ignore things like semantic-capf. X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/69014aa7f585eed4b85b3202146a5c63da58d887 * company/company-capf.el: Don't ignore things like semantic-capf. --- diff --git a/.gitignore b/.gitignore index 5de4b9de6..313d9e575 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.elc +*.orig *~ ChangeLog core diff --git a/packages/company/company-capf.el b/packages/company/company-capf.el index 3aaeb137a..be7292ab7 100644 --- a/packages/company/company-capf.el +++ b/packages/company/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)))