Hi,

   I have configured emacs for CEDET but I think there is some problem because it seems ignore cscope and globals databases.

My configuration it is:

(require 'ede)
(require 'ede-locate)
(global-ede-mode 1)


(require 'semantic-load)
(require 'semanticdb-system)
(require 'semantic-ia)
(require 'semantic-gcc)
(require 'semanticdb-global)
(require 'semanticdb-ectag)


(setq semantic-load-turn-everything-on t)
(semantic-load-enable-excessive-code-helpers)
(global-semantic-idle-completions-mode -1)


(when (executable-find "locate")
  (add-to-list 'ede-locate-setup-options 'ede-locate-locate))


(when (cedet-gnu-global-version-check t)
  (add-to-list 'ede-locate-setup-options 'ede-locate-global)
  (semanticdb-enable-gnu-global-databases 'c-mode)
  (semanticdb-enable-gnu-global-databases 'c++-mode))


(when (cedet-cscope-version-check t)
  (add-to-list 'ede-locate-setup-options 'ede-locate-cscope)
  (semanticdb-enable-cscope-databases))

(when (cedet-idutils-version-check t)
  (add-to-list 'ede-locate-setup-options 'ede-locate-idutils))

(when (semantic-ectag-version)
  (semantic-load-enable-primary-exuberent-ctags-support)
  (semantic-load-enable-secondary-exuberent-ctags-support))

(semanticdb-load-system-caches)



ETags, IDutils, Global, cscope and locate programs are installed in my system, so all the code is evaluated.
After loading my automake project and visit a file my Globals database is:

*#<semanticdb-project-database-global global (1 tables)>
   ] Name: "global"
   ] Class: #'semanticdb-project-database-global
   ] reference-directory #unbound
   ] new-table-class #'semanticdb-table
   ] cache : nil
   ] :tables #<list o' stuff: 1 entries>
     > #<semanticdb-table-global GNU Global Search Table (0 tags)>
         ] Name: "GNU Global Search Table"
         ] Class: #'semanticdb-table-global
         ] parent-db #<semanticdb-project-database-global global (1 tables)>
         ] :major-mode : nil
         ] :tags : nil
         ] index #unbound
         ] cache : nil


and cscope database is:

*#<semanticdb-project-database-cscope CScope (1 tables)>
   ] Name: "CScope"
   ] Class: #'semanticdb-project-database-cscope
   ] reference-directory #unbound
   ] new-table-class #'semanticdb-table
   ] cache : nil
   ] :tables #<list o' stuff: 1 entries>
     > #<semanticdb-table-cscope Cscope Search Table (0 tags)>
         ] Name: "Cscope Search Table"
         ] Class: #'semanticdb-table-cscope
         ] parent-db #<semanticdb-project-database-cscope CScope (1 tables)>
         ] :major-mode : nil
         ] :tags : nil
         ] index #unbound
         ] cache : nil


and my ebrowse database only has information about structs and class:


*#<semanticdb-project-database-ebrowse /opt/suse11.2/usr/include/ (42 tables)>
   ] Name: "/opt/suse11.2/usr/include/"
   ] Class: #'semanticdb-project-database-ebrowse
   ] reference-directory "/opt/suse11.2/usr/include/"
   ] new-table-class #'semanticdb-table-ebrowse
   ] cache : nil
   ] :tables #<list o' stuff: 42 entries>
     ...
     > #<semanticdb-table-ebrowse stdlib.h (2 tags)>
         ] Name: "stdlib.h"
         ] Class: #'semanticdb-table-ebrowse
         ] parent-db #<semanticdb-project-database-ebrowse /opt/suse11.2/usr/include/ (42 tables)>
         ] :major-mode #'c++-mode
         ] :tags #<TAG LIST: 2 entries>
           * drand48_data : class
           * random_data : class
         ] index #unbound
         ] cache : nil
         ] :file "stdlib.h"
         ] buffer : nil
         ] dirty : nil
         ] db-refs : nil
         ] :pointmax : nil
         ] :fsize : nil
         ] :lastmodtime : nil
         ] :unmatched-syntax #unbound
         ] :lexical-table : nil
         ] :ebrowse-tree : nil
         ] :global-extract : nil


If I try some symref of completions with this databases cedet have to parse all files without using any information of Cscope or Globals, so it seems not be helpful at all. I can use standalone programs without problems, so it seems databases are ok.

Can someone help me?


Thanks.