On 07/03/2012 05:01 AM, Arne Schmitz wrote:
> When running semantic-symref in large projects, I have to wait several
> minutes for the grep commands to complete. I am already using GNU global
> and xgtags.el. Can I tweak Semantic to only use that as well, instead of
> grep?
Yes. It is supposed to be automatic though.
The actual code is in semantic/symref.el:
(defvar semantic-symref-tool-alist
'( ( (lambda (rootdir) (file-exists-p (expand-file-name "GPATH"
rootdir))) .
global)
( (lambda (rootdir) (file-exists-p (expand-file-name "ID" rootdir))) .
idutils)
( (lambda (rootdir) (file-exists-p (expand-file-name "cscope.out"
rootdir))) .
cscope )
)
...
so it looks like if you have a GPATH file in the project root directory,
then symref should find and use it.
That implies that EDE is able to find your project root. If EDE doesn't
work with your project, then it uses the current directory.
Eric
|