Questions tagged [gtags]
The gtags tag has no usage guidance.
25
questions
0
votes
1answer
52 views
ggtags does not play well with tramp — emacs freezes multiple times
I've recently started to use tramp to edit a codebase that's two ssh hops away from me I was initially very happy with the experience, given how transparent everything was.
I use magit and ggtags and, ...
0
votes
0answers
17 views
Helm gtags dwim jump without overwrite current window
So, I have 2 files: tictactoe.cpp and tictactoe.h. You can see the image for these two files below in Emacs. I have them stacked horizontally and also have tabbar to show the name of the files
I have ...
0
votes
0answers
50 views
GNU global prefers goto definition instead of goto to declaration
How I find a declaration of a cpp class or struct by GNU global for now.
search a class name with Emacs gtags plugin such as ggtags or counsel-ggtags)
the constructor or destructor of the class is ...
0
votes
0answers
22 views
M-. takes over my commands and can't execute OR C-g to escape
I am using Emacs 26.3 and trying out ggtags-company-mode to navigate my code base.
I move my cursor to a function I want to jump to the definition of, poll_count, and enter M-.
I now have this at ...
1
vote
1answer
65 views
How do you get gtags working with Lua?
How do you get gtags working with Lua?
I want to be able to have same tags functionality for Lua like with C/C++, i.e. find definitions of functions, function references, symbol references, etc.
I ...
0
votes
0answers
9 views
Focus ggtags-global when it spawns
When I find definitions ggtags-find-tag-dwim and there are multiple results it opens *ggtags-global* but the focus remains in my buffer that initiated the call to ggtags-find-tag-dwim. I'm trying to ...
2
votes
1answer
318 views
Use lsp-mode for some projects and ggtags for others
Is there a way to configure Emacs to activate lsp-mode for some projects and ggtags for other projects? Maybe using .dir-locals.el?
I code C++ and the project I most often work on doesn't support lsp-...
0
votes
0answers
767 views
irony server installation
Irony install server yeilds this error every time i try an installation. Clang requirements are all installed.
Can someone please help me out.
-*- mode: compilation; default-directory: "/tmp/build-...
1
vote
1answer
388 views
helm-gtags doesn't reflect the latest code change
I'm using helm-gtags-find-tag-from-here command a lot. It works fine as long as there is no change to the source file contains the definition of symbol under the cursor. However, if I modify the ...
0
votes
0answers
88 views
Too much time spent for emacs to open cpp in the project
I use ggtags in order to improve my efficiency. I follow the manual to setup emacs environment.
https://tuhdo.github.io/c-ide.html
However, during editing the cpp files in the projects. Chance are ...
1
vote
1answer
206 views
How to find where a given function is called from in gtags
I am using gtags and can jump to where a function is defined. Howeve I am not able to find inside a function where it is begin called from. Is there anyway to find where a function is called from?
0
votes
1answer
41 views
M-* interpreted as M-8
I use gtags. I do M-. to go to the function definition, but then when doing M-* to go back to where I was nothing happen and the minibuffer shows as if I did M-8 . My configuration is here
1
vote
0answers
55 views
Parsing non-standard C with gtags
I'm working with a codebase that's meant to be built with a proprietary C compiler using tons of esoteric language extensions. Ideally, I'd like to stick to my chosen environment as much as possible, ...
2
votes
1answer
145 views
Using ggtags tag lookup along with centered-cursor-mode
I am using centered-cursor-mode to center the cursor at 10 lines above center at all times. I am trying to have ggtags respects this setup after each tag lookup.
When I have the cursor at any point ...
7
votes
1answer
2k views
what is the difference between gtags-mode and ggtags-mode
In my emacs (24.5.1) I have both and I'm not sure which is what. ggtags was installed through list-packages from melpa.
2
votes
1answer
1k views
Jump to definition of function or class in one of the include files?
Take the following sample code:
#include <cmath>
int main() {
double a = -10;
double b = std::abs(a);
return 0;
}
When I place the cursor over abs, for example between b and s, I ...
1
vote
0answers
272 views
Company duplicates
I use gtags, jedi and dabbrev for python. Sometimes the duplicates get a bit annoying. I read that using :with should sort out the duplicates problem. However, it does not... Is there a better ...
3
votes
1answer
513 views
Smarter company/auto-complete
I have moved to Emacs due to its diversity and yes...it simply Rocks! I have one final thing to resolve. I mostly program in python and it is a great feature to auto complete a function with its ...
6
votes
1answer
4k views
GNU Global + ggtags and helm + helm+gtags
In http://tuhdo.github.io/c-ide.html#orgheadline2 which is about "Prerequisite"
Or, helm + helm-gtags.
What does "Or" imply as the alternative to the combination "helm + helm+gtags"?
Is the ...
1
vote
1answer
1k views
Completion for variables in C using company-gtags, or not Semantic
I have a working C IDE without Semantic (too slow for me), from instructions here, with completion provided by company-gtags (I think. Maybe clang does something too?).
Completion at point works for ...
3
votes
0answers
853 views
How can I use ggtags as a company-mode backend?
I'm working on a project that doesn't play nice with clang. It also doesn't play nice with ctags because the TAGS file is ~180 MB and it chokes up whenever I do anything moderately intensive with it.
...
1
vote
0answers
25 views
How can I have C functions coloured based on whether they are defined?
Colleague of mine showed me a cool feature of gnome-builder which does colour symbols based on whether they are defined or not and I was wondering whether it is possible in Emacs as well. And by that ...
5
votes
2answers
426 views
Include vendor's tags for ruby-mode and ggtags
I'm trying to install and configure the ggtags package. Primarily, I use it for a ruby on rails projects (enh-ruby-mode).
I can generate ctags including all vendor's files for my project with the ...
1
vote
2answers
1k views
evil mode with ggtags
I want to use evil mode with ggtags but evil mode keeps taking some of the bindings such as M-.. I'm new to emacs and I'm interested in learning what's going on. At first I tried explicitly setting ...
7
votes
3answers
3k views
Find external definition with gtags or ggtags
Using gtags.el or ggtags.el.
I have a project A depending on project B. While in a buffer belonging to A, I want to jump to a definition in B. How do I do this with ggtags-mode ? M-. simply lists ...