简体   繁体   中英

CEDET: storing tags manually

I'm using ECB with Cedet - and semantic search engine stores tags about the files I visit in its cache files.

I'm also using ECB's left-symboldef layout - which shows definition of the tag the cursor is on. In order to do that semantic opens the file where the tag was defined.

The problem is - semantic opens almost all of my python scripts all the time - since I have parser defined in all of them - when I parse command line arguments with argparse ... So I'd rather stop semantic caching my files automatically, and do it manually with Cc , , on my libs only.

So my question is - how do I prevent semantic from storing cache? I should still be able to use the existing database (which I'll collect manually).

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

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

and if it is pulling them in via includes, you can do this:

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

This is actually the default, and it gets set to true if you use one of the canned configuration options for regular or gaudy code helpers.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM