Questions tagged [ctags]
A tool that indexes the symbols (functions, variables, classes, and class methods) of various programming languages.
41 questions
0
votes
0
answers
25
views
How can I list all universal ctags in Emacs format?
For universal ctags, there is a readtags command that can list all tags, but this works only for a lowercase tags file, which is in its native format. It doesn't work for uppercase TAGS file, which is ...
2
votes
2
answers
75
views
What is the ctags included with Emacs?
I'm not sure I understand the ctags that comes with Emacs?
Is this a totally original codebase and is not a fork of anything?
Does it say anywhere what languages it supports?
0
votes
1
answer
104
views
How can I check if xref-find-references is using the correct TAGS file?
I'm only getting
Unable to find symbol
, no matter what I try
I first need to figure how which TAGS file it is using. I have generated a TAGS file.
0
votes
0
answers
86
views
ctags file for several languages
I am using universal-ctags to generate a tags file that allows me traverse the code.
However the code base I am using spans verilog to C code. My question is this:
Can I have the one ctags file that ...
1
vote
1
answer
511
views
How do I populate tags for C?
I hover over stdlib:
#include <stdlib.h>
I type M-. and it asks me:
Visit tags table (default TAGS):
I don't have one of those. I see a lot of information about TAGS in the emacs ...
0
votes
1
answer
765
views
how to go to the first definition with xref-find-definitions, do not show all options?
When I press gd to go to the definition of a class in C++, Emacs splits the screen and shows me two definition options that I need to click on with one of them. I'm used to coc.nvim where I would just ...
1
vote
1
answer
218
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
0
answers
50
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
1
answer
225
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 ...
1
vote
2
answers
137
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
...
0
votes
1
answer
372
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
1
answer
227
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
2
answers
291
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-...
1
vote
3
answers
509
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 ...
3
votes
0
answers
554
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
1
answer
751
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 ...
4
votes
1
answer
441
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-...
2
votes
1
answer
176
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 ...
0
votes
3
answers
533
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 ...
1
vote
1
answer
90
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 ...
2
votes
1
answer
175
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 ...
3
votes
2
answers
2k
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 ...
1
vote
1
answer
467
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
1
answer
2k
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 ...
2
votes
1
answer
355
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
2
answers
727
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 ...
3
votes
1
answer
402
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
1
answer
1k
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 ...
1
vote
1
answer
329
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 ...
2
votes
1
answer
273
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 ...
1
vote
1
answer
846
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 [email protected] using ssh...
Tramp: Sending command `exec ssh -l YYY -o ControlPath=/var/folders/4c/...
4
votes
1
answer
456
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 ...
0
votes
1
answer
106
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 ...
17
votes
1
answer
982
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)
...
5
votes
2
answers
504
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 ...
3
votes
0
answers
273
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 ...
4
votes
2
answers
499
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"))
...
5
votes
2
answers
4k
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 ...
6
votes
2
answers
4k
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 ...
9
votes
1
answer
2k
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
1
answer
732
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, ...