Questions tagged [gnu-global]

GNU's Source Code Tagging System.

GNU's Source Code Tagging System. The official website for GNU Global is: https://www.gnu.org/software/global/

29 questions
113
votes
5 answers

Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctags

I work on C++ projects, and I went through Alex Ott's guide to CEDET and other threads about tags in StackOverflow, but I am still confused about how Emacs interfaces with these different tag systems to facilitate autocompletion, the looking up of…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
7
votes
2 answers

How to add Python plug-in to Gnu Global

my gtags verion is gtags - GNU GLOBAL 5.9.2 I downloaded a python plug-in for Gnu Global here copy the globalrc.example to ~/.globalrc copy the script/python_global_tags.py to ~/bin/python_global_tags.py which is in my $PATH type: "gtags" in a…
sfszh
  • 668
  • 1
  • 6
  • 8
7
votes
1 answer

How to make emacs Semantic use the TAG file generated by GTAGS

My emacs version is 23.2.1 Although I used the following to change the backend to use GTAGS. (require 'semantic/db-global) (semanticdb-enable-gnu-global-databases 'c-mode) (semanticdb-enable-gnu-global-databases 'c++-mode) I tried to generate a…
6
votes
0 answers

How do I install GNU Global with universal ctags support using Homebrew?

According to the GNU Global documentation # Installation of GLOBAL # It assumed that ctags command is installed in '/usr/local/bin'. $ ./configure --with-universal-ctags=/usr/local/bin/ctags $ make $ sudo make install I need to install GNU Global…
greyowl
  • 125
  • 7
5
votes
2 answers

GNU Global and GTAGS can't find class definitions

I'm having trouble getting global to find class/struct definitions. I can find them with exuberant ctags and with cscope. All tag files are built from the same source file list. I configured and built global, et.al., only specifying…
Outis Von Nemo
  • 131
  • 1
  • 5
4
votes
4 answers

Can gtags navigate back?

I use vim with gtags plug in to read code through multiple files. Everything is okay except that I donnot know how to navigate back to the previous position before I run :CtagsCursor to jump to the token definition. I read through the GNU global…
Pan Ruochen
  • 1,990
  • 6
  • 23
  • 34
4
votes
0 answers

setting up emacs autcomplete with gtags

I've been struggling with getting tags to work with auto-complete mode for quite a while now, and it seems like my attempts have been futile. I have two questions: How can I tell if auto-complete mode is working with gtags? How do I setup gtags to…
foboi1122
  • 1,727
  • 4
  • 19
  • 36
3
votes
2 answers

How to use gtags -v to create index but skipping some subdirectories

I am trying to run 'gtags -v' to build index for my large code base. from this link: Emacs as an IDE for large C++ projects My question is how can I tell gtags to skip walk into some directories (not necessary top level) "e.g. 'out', '.git',…
n179911
  • 19,547
  • 46
  • 120
  • 162
3
votes
3 answers

How to make magit pull to have rebase option by default?

I recently started using magit package in emacs and its really useful and handy. I would like to make couple of tweaks. How do I make magit pull to be always have rebase option?. Currently it shows up switches and I have to choose -r --rebase. In…
sudurais
  • 189
  • 1
  • 7
3
votes
1 answer

On emacs, I can't jump to tags in GTAGS SELECT buffer

On emacs, I can't jump to tags in GTAGS SELECT buffer. I get "Buffer is read-only: " error when I press return. Mac OS X 10.8.1 Emacs 24.2 gtags GNU GLOBAL 6.2.4 (installed by homebrew) gtags.el 3.3 (installed by…
wataradio
  • 85
  • 10
2
votes
0 answers

How to let the gtags support const definition search with emacs

i use emacs for a long time, and also i use cscope for my code navigation, now i changed to global gtags, it is much advantage, like it is very fast, very precise to find the definition of a function, but i found it cannot find variable which…
denny
  • 21
  • 4
2
votes
0 answers

search class member function using GNU Global

How to search member function of a class using GNU Global? For example, there're two classes class A{ func(); ...}; class B{ func(); ...} If I search func, both A::func and B::func appears. If I search "A::func", nothing is returned.
Yao Jin
  • 21
  • 3
2
votes
1 answer

Differences between several vim tags plugin

I have two questions actually. First, as far as I know, there are two tags tools: Ctags GNU Global a.k.a. gtags I'm wondering which one is more suitable if my daily works are concentrated on Ruby, Rails, JavaScript, and Python. Namely, dynamic…
lazywei
  • 11,955
  • 5
  • 20
  • 25
2
votes
3 answers

how to set folder path for gtags

I am new to gtags, and have a question. I have a big project, such as android AOSP, I want gtags to parse some folders, how can I achieve it with gtags? I searched and got solution: use -f option with gtags, it seems doesn't support folders Is…
thisEric
  • 486
  • 7
  • 18
2
votes
1 answer

Using gtags for gtk headers and my own project

I have a gtk project and I want to use gtags for my project. I also would like to use gtags for the external libraries, in my case gtk. I tried: find /usr/include/gtk-2.0 -name "*.h" > gtk_headers gtags -f gtk_headers Unfortunately, I get a…
pyfex
  • 1,195
  • 1
  • 8
  • 13
1
2