You have the latest published version. The problem you have run
into has better solutions in the current CVS version of CEDET. If you
can get the CVS version, then there is an EDE project style called
ede-cpp-root, whose job is to solve the exact problem you have
You would configure it like this in your .emacs file:
(ede-cpp-root-project "NAME" :file "FILENAME"
:include-path '( "/include" "../include" "/c/include" )
:system-include-path '( "/usr/include/c++/3.2.2/" )
:spp-table '( ("MOOSE" . "")
("CONST" . "const") ) )
More is in the ede-cpp-root.el commentary.
You would also want the latest CVS version because the smart
completion is much more robust than in the last pre4 release.
>>> "Dejan Pangercic" <dejan.pangercic@...> seems to think that:
>I just hit today on CEDET project and it seems to offer what I am
>looking for, this is an EMACS plugin that enables c, c++ code
>auto-completion. However, despite playing around with it for a whole
>day and trying to get a thorough tutorial (which I failed), I did not
>quite get it up and running. In particular it would never suit to my
>project layout where I keep declarations in "include" and definitions
>in "src" directories respectively, i.e. definitions only get
>auto-completed using " semantic-ia-complete-symbol-menu" command if
>they lie in the same buffer.
>Say that, is maybe somebody willing to share his/her .emacs (a bit
>commented) configuration file with me or point me to the documentation
>that elaborates a setup of one c/c++ powered project.
>Last but not least, "cedet-version" command is telling me following:
>CEDET Version: 1.0pre4
> Requested File Loaded
> Package Version Version Version
> cedet: 1.0pre4 ok ok
> cogre: 0.5 ok Not Loaded
> ede: 1.0pre4 ok ok
> eieio: 1.0 ok ok
> semantic: 2.0pre4 ok ok
> speedbar: 1.0.1 ok ok
> cedet-contrib: 1.0pre4 ok Not Loaded
>Is this the latest version?
>greets and thx, D.
[ ... ]
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net