Re: Iterative visiting of all source files

RJD <[email protected]> Wed, 4 Feb 2015 17:39:06 +0000 (UTC)
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
I would prefer to use GTAGS as the main source of the lookup for CEDET. At
work we have a huge project. From what I have researched so far the
following are the stages required to set up using gtags (this is basically
my .emacs - at the beginning):

========portion of .emacs========

;; MODE: CEDET
(load-file "~/.emacs.d/bzr_cedet/cedet-devel-load.el") ;; This is the latest
dev' version ~~ 26th Jan 2015
;; Add further minor-modes to be enabled by semantic-mode.
;; See doc-string of `semantic-default-submodes' for other things
;; you can use here.
(add-to-list 'semantic-default-submodes 'global-semantic-idle-summary-mode t)
(add-to-list 'semantic-default-submodes
'global-semantic-idle-completions-mode t)
(add-to-list 'semantic-default-submodes 'global-cedet-m3-minor-mode t)
(semantic-mode 1)
;(global-ede-mode 1)
(global-semantic-decoration-mode)
;(semantic-show-unmatched-syntax-mode t)
;(speedbar 1)

;; MODE: GTAGS (backend for SEMANTIC)
(setq cedet-global-command
"c:/Users/me/Downloads/gnu_global_622wb/gnu_global_622wb/bin/global")
(semanticdb-enable-gnu-global-databases 'c++-mode t)
(semanticdb-enable-gnu-global-databases 'c-mode t)
(setq-default semantic-symref-tool
"c:/Users/me/Downloads/gnu_global_622wb/gnu_global_622wb/bin/global")

========END portion of .emacs====

Then,
(http://stackoverflow.com/questions/12791246/how-can-i-tell-if-cedet-is-using-gnu-global)
Eric tells us how to ensure we are using gtags which is basically:

1. M-x cedet-gnu-global-show-root RET
;;;;; For me, this correctly returns the root directory and this is, indeed,
where all the G* files are (such as GTAGS)

2. M-: (semantic-symref-detect-symref-tool)
;;;;; This brings back the string used in my .emacs file. Basically the
function returns:
"c:/Users/me/Downloads/gnu_global_622wb/gnu_global_622wb/bin/global"

Eric, you say in that stack overflow source: "it will give you a symbol
representing the tool it has chosen to use" - but I do not know what this means.

I still see no way to definitively finding out whether or not semantic is
using GTAGS.

Cheers.



------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/