I wanted to add a group containing company-irony and company-dabbrev-code to my company-backends so I can choose completions from company-dabbrev-code if Irony does not offer any. The problem is that this conflicts with my current catch all group (company-dabbrev-code company-keywords) which is the last item in global company backends.
I noticed that setting '((company-irony company-dabbrev-code)) as local company-backends in a buffer works although the documentation says you should check the value with company-safe-backends-p (which uses the variable company-safe-backends in which company-irony is not included) first. Is this intended / officially supported behaviour?
Edit: The problem I had can be solved by adding (company-irony :with company-dabbrev-code) to company-backends.
I wanted to add a group containing
company-irony
andcompany-dabbrev-code
to mycompany-backends
so I can choose completions fromcompany-dabbrev-code
if Irony does not offer any. The problem is that this conflicts with my current catch all group(company-dabbrev-code company-keywords)
which is the last item in global company backends.I noticed that setting
'((company-irony company-dabbrev-code))
as localcompany-backends
in a buffer works although the documentation says you should check the value withcompany-safe-backends-p
(which uses the variablecompany-safe-backends
in whichcompany-irony
is not included) first. Is this intended / officially supported behaviour?Edit: The problem I had can be solved by adding
(company-irony :with company-dabbrev-code)
tocompany-backends
.