emacs - Hierarchical GTAGS TAG file -
one liner: looking "hierarchical" tags file setup whereas if global cannot find tagsdb in gtagsdbpath directory climbs dir chain till finds another.
long liners:
i have project file structure
/vob/project-name/src/ ==> root of project src directory
under directory there subdirs like: ./utils, ./common, ./iplib, ./ipv6lib, ./subsystem1, ./subsystem2 etc
i work on subsystem1
the big tags file huge.
i have..
setenv gtagsroot /vobs/project-name/src setenv gtagsdbpath /vobs/project-name/src these take 40mins build.
i have tags file in ./subsystem1/sre
currently have 2 shell files:
toptags :
setenv gtagsroot /vobs/project-name/src setenv gtagsdbpath /vobs/project-name/src bottomtags:
setenv gtagsroot /vobs/project-name/src/subsystem1/src setenv gtagsdbpath /vobs/project-name/src/subsystem1/src in way, can build top project file , bottomtags every , there churn is.
also, currently, when (setq ggtags-update-on-save nil) each time write file 3 processes spawned off not die. got stern e-mail sysadmin keeping 150 processes standing.
locate-dominating-file need.
(locate-dominating-file default-directory gtags-file-name) will give name of closest enclosing directory containing file called gtags-file-name, or nil if there no such directory.
Comments
Post a Comment