1

I use company-irony for C++ code completion. I have deleted the company-semantic backend from company-backends in my init.el.

Now I want to use Semantic and specifically the global-semantic-stickyfunc-mode to display current function at the top of the frame (this is useful if the function spans more than one frame). I enabled this in my init.el and it works.

So far I haven't noticed any problems with using Company and Semantic concurrently like this. Does anybody know if this might cause problems?

  • Try disabling semantic-idle-completions-mode and/or global-semantic-idle-completions-mode. – Dmitry May 25 '17 at 17:54
  • I'll try that tomorrow when I'm back at work. – Mikael Springer May 25 '17 at 18:21
2

I did run into trouble. Emacs would become unresponsive trying to complete code and at other times when I do not know what was executing. I disabled Semantic again and Emacs went back to normal again. So one clearly need to do some more configuration to run Company and Semantic concurrently, the only question is what.

  • Sometimes Semantic needs time to index files, for completions and etc. You could find out if that was the problem by trying Semantic without Company (it has a built-in completion feature too, although it's relatively awkward). – Dmitry Jun 24 '17 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.