CEDET: saving tags manually

I use ECB with Cedet - and the semantic search engine stores tags about the files that I visit in my cache files.

I also use ECB left-symboldeflayout - which shows the definition of the tag the cursor is in. To do this, semantics opens the file where the tag was defined.

The problem is that semantics open almost all my python scripts all the time - as I have parser, defined in all of them - when I parse the command line arguments with argparse... Therefore, I would rather stop semantic caching my files automatically and do it is manually using C-c , ,only in my libraries.

So my question is: how can I prevent cache semantics from being preserved? I still have to use the existing database (which I will collect manually).

+5
source share
1 answer

To prevent automatic parsing of other files in idle mode, you can set:

(setq semantic-idle-work-parse-neighboring-files-flag nil)

and if it pulls them through include, you can do this:

(setq semantic-idle-work-update-headers-flag nil)

In fact, this is the default value, and it gets true if you use one of the canned configuration options for regular or hidden code helpers.

In order not to parse all the files, but still let the ECB find the tag definitions, you probably need to use the GNU Global database. See more details semanticdb-enable-gnu-global-databases.

+3
source

All Articles