Questions tagged [ctags]

A tool that indexes the symbols (functions, variables, classes, and class methods) of various programming languages.

Filter by
Sorted by
Tagged with
0
votes
1answer
46 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
33 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 ...
5
votes
2answers
3k views

Emacs TAGS file in Windows?

One way to look into the source code of any function in Emacs is to use the M-. (find tag). When I do this in Windows platform Emacs 24 I get Find tag: in the minibuffer asking to enter the name of a ...
0
votes
1answer
38 views

Why TAGS file is loaded/visited automatically if it exists in project root directory?

If the root of the project has a TAGS file, and I load/visit a file FOO from this dir into a freshly started Emacs, Emacs loads/visits two files, and the buffer list shows FOO and TAGS. I also get a ...
0
votes
0answers
20 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
2answers
59 views

Make 'ctags' detect fortran's “module procedure” pattern?

I am using ctags to index fortran files for code navigation in Emacs with M-.. In doing so I have noticed that it doesn't recognize declarations of the form MODULE PROCEDURE MySubroutineName ! or ...
1
vote
1answer
251 views

tags-add-tables / list of tag tables

I can't find a concise answer to this question, only big manuals for which I'm not sure reading them will give me the answer... Spacemacs & haskell-mode are now giving me tag navigation by default ...
6
votes
1answer
842 views

Regenerate ctags TAGS file without freezing Emacs for a while?

When I'm currently in a large project and I call the command projectile-regenate-tags, the project will be scanned by ctags and the tags will be stored in the TAGS file. While all this action is ...
4
votes
2answers
414 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 ...
0
votes
1answer
82 views

Creating ctag DB gives “permission denied” error on git-bash (MS Windows)

I am a Linux user (world was pretty neat; less to no headache)-- I've been using vim with cscope to wade through huge code-base....... And for some reason, now I have to use windows machine, here are ...
2
votes
1answer
126 views

Using advice to run function before tag symbol lookup

I use xref-find-definition to look up the definition of a symbol name. When I call xref-find-definition, I want to Emacs to automatically find and load an appropriately named etags file. For this ...
1
vote
1answer
58 views

Improving Etags support for fortran?

When using xref with Fortran I noticed that indexing by etags is highly incomplete; Almost exclusively subroutines (and maybe functions) are index, but modules, types, constants and global variables ...
0
votes
2answers
126 views

Symbol's function definition is void: rtags-enable-standard-keybinding [duplicate]

I have just started using emacs and I wanted to setup RTags. Looking at the Usage section int the github repo here, I added the following line to my config (rtags-enable-standard-keybindings c-mode-...
4
votes
1answer
218 views

How to set tags-table-list as a per-directory local variable?

I have two tags tables that I would like to be searched/visited when I'm working on one of my R packages. I am able to set them globally with the following code in my .emacs config file: (setq tags-...
1
vote
3answers
169 views

Does ctags know about the type of a data member in a class?

I'm trying to learn about ctags in emacs. I have built a TAGS file as per the instructions here: https://www.emacswiki.org/emacs/EmacsTags. I think I'm using exuberent-ctags, but I'm not sure. I ...
6
votes
2answers
3k views

Class Browsing in C++

I'm working with a large codebase and often find it to be tedious and hard to understand class relationships. I found the following wiki that describes various tools for working with OOP in C++, but ...
2
votes
2answers
738 views

Automatically locate & use the right etags file for each project?

I'm trying to port my tagging workflow from Vim & ctags to Emacs & etags. I currently use git hooks to write a tags file to .git/tags in ctags format whenever I commit/merge/etc. This keeps ...
3
votes
0answers
301 views

How to generate TAGS tables for JavaScript with React?

I'd like to create TAGS tables for JavaScript ES6 code using React like the following: import React from 'react' import { observer } from 'mobx-react' import { Formik, Form, Field } from 'formik' ...
1
vote
1answer
376 views

CSS classes autocomplete not working with web-mode

I'm struggling with a problem with Spacemacs and I don't know what I'm doing wrong (maybe a lot of things). I have created a TAG file for my project. The tags seem to work well because I can navigate ...
1
vote
1answer
66 views

documentation/specfication for emacs variant of ctags format

Where can I find some thorough documentation / a specification for the Emacs ctags format? The ultimate goal here is to make it easier to generate a tags file in parallel (preferably using a tool like ...
0
votes
2answers
374 views

can't load python tags table

generating python tags with for file in $(find -type f -regex ".+\\.\(py\)"); do etags -a $file; done doesn't load at emacs with error path/TAGS is not a valid tags file although other language ...
2
votes
2answers
617 views

C Source code browsing similar to eclipse

Currently I am using eclipse to browse cross compiled C source code. I don't have back end cross compiler to actually compile and build the code. But eclipse create source browse tree. I want to have ...
2
votes
1answer
131 views

specifying a syntax-table for use with TAGS file for etags

It would be convenient if I could arrange for visit-tags-table to open the TAGS file automatically with the correct syntax table for the language of the files being indexed in it. That way regular ...
4
votes
1answer
358 views

Opposite of pop-tag-mark

I just found out about the function pop-tag-mark (M-* by default) to go back after a find-tag (or in this case after a racer-find-definition). Occasionally I would like to go "forward" again after ...
1
vote
1answer
340 views

Feasible tags solution for a large Ruby codebase?

I've been working in a large Ruby project using Vim with ctags. I have a git hook that generates an up-to-date tags file whenever I commit/pull/etc. It basically boils down to git ls-files | \ ...
2
votes
1answer
256 views

Load a large TAGS file from a remote host at a Windows machine

I run Emacs locally on my Windows machine, but edit everything remotely, via tramp & plink (PuTTY's implementation of ssh). This all works just fine, but, as I found out today, TAGS files for ...
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 ...
0
votes
1answer
97 views

How to restrict find-tag-regexp to search only the symbol part of TAGS

A typical line in a TAGS file looks like this (note use of special characters ^? and ^A) (defvar copyright-owner user-full-name^?copyright-owner^A213,7296 and a find-tag-regexp will search the ...
1
vote
1answer
174 views

Where is the tag table located?

I'm relatively new to emacs and currently working through the introduction to elisp. In chapter 4 I came across the find-tag which should display the source code of its argument. I typed M-x find-tag ...
3
votes
2answers
291 views

Why is TAGS table setting persistent?

I have in my startup init file a setting: (setq tags-table-list (list "~/linux/TAGS")) After using emacs and TAGS tables, I now want to change that to: (setq tags-table-list (list "~/trunk/TAGS")) ...
1
vote
1answer
726 views

Emacs hangs to due to looking for TAGS file on remote machine

I am working on a local file and I will see these TRAMP messages: Tramp: Opening connection for YYY@XXX.XXX.com using ssh... Tramp: Sending command `exec ssh -l YYY -o ControlPath=/var/folders/4c/...
2
votes
1answer
222 views

Tags searching and completion

I've tried to create a tags table for my assembler project using: etags --language=none --regex="/[ \t]*\.\([^: \t]+\)/\1/i" *.asm Which does work to a degree, and indeed when I load the TAGS file ...
16
votes
1answer
761 views

Never “Keep current list of tags tables also”

If I'm working in a directory with its own TAGS file, and then I move to another directory, with its own TAGS file, I always get asked this question: Keep current list of tags tables also? (y or n) ...
3
votes
0answers
189 views

Class inheritance tree in ECB

I'd like to see the inheritance tree for classes which I have currently open, similarly to how it ECB shows related files (e.g. I have a class B in my buffer, its parent A and child C are in different ...
8
votes
1answer
1k views

“Making tag completion table” Freezes/Blocks — how to disable

TLDR: I've got a large tags file that loads multiple times per session, making it unusable. Can't find the source of issue or how to disable it -- main goal is to jump to tags, but completion would ...
6
votes
1answer
553 views

ctags over tramp

A lot of things including M-x compile work fine over tramp, but find-tag seems to be the exception: it attempts to jump to a location in a local file. Would someone investigate why it's doing this, ...