all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.