* How correct setup semantic include path?
@ 2010-08-27 11:00 Oleksandr Gavenko
0 siblings, 0 replies; only message in thread
From: Oleksandr Gavenko @ 2010-08-27 11:00 UTC (permalink / raw)
To: help-gnu-emacs
I use Emacs 23.2 which include Semantic.
My first attempt is put to .emacs:
(semantic-add-system-include "~/.emacs.d/include" 'c-mode)
(semantic-add-system-include "~/.emacs.d/include" 'c++-mode)
(global-semanticdb-minor-mode 1)
But 'semantic-dependency-system-include-path' in .c file has value
("/usr/include") and completion, goto declaretion not worked.
Then I try:
(add-hook 'c-mode-hook
(lambda () (semantic-add-system-include "~/.emacs.d/include"
'c-mode)))
(add-hook 'c++-mode-hook
(lambda () (semantic-add-system-include "~/.emacs.d/include"
'c++-mode)))
In this case all ok but not for first visited .c file.
To workaround this issue I just 'revert-buffer'.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-27 11:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27 11:00 How correct setup semantic include path? Oleksandr Gavenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).