1

When editing a C file in emacs with semantic-mode, Is there a way to prevent semantic to recursively parse included files, and only allow it to parse the current buffer? I like some functionalities of semantic that only require parsing the current buffer (highlighting...), while I use rtags for navigation. I do not want to turn semantic off, but since parsing is extremely slow and blocks emacs, I would like to avoid it.

antonio
  • 154
  • 3
  • did you enable `global-semanticdb-minor-mode` as part of your `semantic-default-modes`? If so, then the parsing results should be stored in a database and it will only be slow the first time you parse all the normal includes. It does seem like it could be done without blocking though. – Rorschach Nov 29 '17 at 17:25
  • Yes, I enabled it. But I don't like that it's slow even the first time. It can take up to half an hour,... – antonio Nov 29 '17 at 17:43
  • huh, it only takes a few seconds on my machine (emacs 27, linux) – Rorschach Nov 29 '17 at 17:46
  • I guess it depends on how big the project is? – antonio Nov 30 '17 at 19:52
  • Even including boost/many system includes etc. should barely be noticeable. Are you on windows? I think I remember it being really slow on windows, but I can't remember why. – Rorschach Nov 30 '17 at 20:13
  • nope, linux. I have the last emacs version on debian sid. – antonio Dec 01 '17 at 06:59
  • maybe it's related to the many error messages "Error: (wrong-type-argument symbolp # – antonio Dec 02 '17 at 13:24

0 Answers0