branch: externals/company
commit 664dd19c2f3d088be3c82bfa3abcc589b491b8f1
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    Move company-clang to after company-capf
---
 NEWS.md    | 5 +++++
 company.el | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/NEWS.md b/NEWS.md
index a16ff5d..5b783ca 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,6 +2,11 @@
 
 ## Next
 
+* `company-clang` has been moved to after `company-capf` in the default value 
of
+  `company-backends`. So now if there is an active completion function in
+  `completion-at-point-functions`, it will have priority over
+  `company-clang`. Unless it's `tags-completion-at-point-function` (this one is
+  still skipped explicitly).
 * `company-eclim` has been removed. Eclim is generally not recommended for 
Emacs
   users these days, with
   ([emacs-eclim](https://github.com/emacs-eclim/emacs-eclim/)) declared 
obsolete
diff --git a/company.el b/company.el
index 7906fb3..0c63d0b 100644
--- a/company.el
+++ b/company.el
@@ -338,9 +338,10 @@ This doesn't include the margins and the scroll bar."
                                   (list 'company-nxml))
                               ,@(unless (version<= "26" emacs-version)
                                   (list 'company-css))
-                              company-semantic company-clang
+                              company-semantic
                               company-xcode company-cmake
                               company-capf
+                              company-clang
                               company-files
                               (company-dabbrev-code company-gtags company-etags
                                company-keywords)

Reply via email to