Eric M. Ludlam <mailto:eric@siege-engine.com> wrote:

> I've fixed semanticdb-mk.el, and attack a patch (against my
> previously fixed version) below.

semantic-cache is now created in every subdir.

>> How can emacs (semantic) be forced to read all semantic.cache files
>> of the project? Can I list all semantic.cache files in .emacs ?
>
> I have verified that this "works for me" in my C project "gnutalk".
> (Also on sourceforge.)  The default value part had an issue fixed by
> the second patch below.  My steps are below:
>
> 1) In gnutalk/src/ run fixed semanticdb.sh on */*.c
> 2) Start fresh emacs, load gtalkd/gtd_ann.c
> 3) go to a call to HOST_somethingidontremember
> 4) C-c , J
>
> At this point, the default is where I go and fixed semantic-complete
> finds it in the correct buffer.  If I type it, the conveniences there
> also work on that symbol found in a different directory.

this still does not work as I expect, only tags from semantic.cache which
contains opened file are displayed (and searched).

My test:
- root_dir
  .
  .
  .
  - dir
    .
    .
    .
    - dir1
     .
     .
     .
     -file1
     -file2
     -semantic.cache
   - dir2
     .
     .
     .
     -file3 (contains tag scsi_write)
     -file4
     -semantic.cache

semanticdb-project-roots: root_dir
- open file1 in emacs, C-c , J and it doesn't display scsi_write tag

can cache files be preloaded at emacs startup?

this is quite a complex project, the root_dir has around 2 MLOC.
can this be a problem?

thanx,
Igor

--
Igor Lautar, OB MA Team
tel: +386 1 586 5115
e-mail: igor.lautar@hermes.si