Unfortunately, the CEDET/EBROWSE integration is not one where the
ebrowse functionality and CEDET can share the same database. I've also
found that the ebrowse parsing is not quite good enough to be a full
substitute for Semantic parsing, but it is pretty good as a first pass
at parsing when you want it all right away without waiting long.
You start by using the command semanticdb-create-ebrowse-database, and
specify some directory. It will run ebrowse with the right flags, and
make a DB for that directory which Semantic will use.
I recommend against using ebrowse database with Semantic for files you
edit a lot. Those files will have regular Semantic databases for them
while you edit, making the ebrowse database redundant. Ebrowse is good
for directories full of files you never intend to reference, but may
For EDE, you don't need to use it to manage your project, but it is
helpful to use ede-cpp-root. You can read about it in the manual here:
(ede.info)Top:: > Project types:: > Simple projects:: > ede-cpp-root
or in ede-cpp-root.el itself.
This acts as a marker, and makes it easier for some tools to identify
code groups, include paths, etc, but doesn't deal with build process.
There is more basic setup advice in cedet/common/cedet.info
If your second email is a p/a commentary on my slow response, well, I
happen to answer emails in large batches once or twice a week, as that
is what I have time for. Sorry.
On 03/03/2010 03:20 PM, S Boucher wrote:
> I'm new to the list. But have been using emacs since 18.59 or some such version, so I'm not a complete emacs newbie :-) I'm however a complete newbie with cedet...
> All is fine up to and including (load "cedet.elc"). After that, I'm not clear where to go (the "gentle introduction" is too generic).
> What I'd like to do is to use semantic with ebrowse. I currently generate a single BROWSE file for the entire project hierarchie. So, as I see it I need to:
> 1) tell semantic where to get the single giant database
> 2) tell semantic how to keep that database up to date
> I'm not clear how to go about doing this. A quick cursory look at semanticdb seem to suggest that semanticdb work with many small ebrowse DB files? So, right there, I'm confused.
> Any help would be appreciated.
> BTW, setting up projects with EDE is pretty much a no go for me. The build environment I have is just too dynamic, and different files have different lists of include dir that are not always provided explicitly (e.g. pkg-config --cflags). One thing that I've done with flymake is to generate, for each .c/.cpp file, a script that contains the command to compile it, and then I configure flymake to load use that script. I don't know if this can be of any use with regards to cedet.
> But for CEDET, I do not understand what's needed to load/update the DB.