Question

I am using ctags to create tags for my Emacs to read symbols from, using cygwin.

Emacs says "visit-tags-table-buffer: File /home/superman/tags is not a valid tags table"

here are my options to find files and generate tags.

$>find . -type f -regex '.*\.[hc]\|.*\.cpp' -print0 |
  xargs -0 ctags -e --extra=+q --fields=+fksaiS --c++-kinds=+px --append -f ~/tags
Was it helpful?

Solution

I think "ctags" is the wrong program. (I'm not sure what it's for; I suspect it's obsolete).

Emacs should have come with a program called "etags"; use that instead.

OTHER TIPS

I wrote a blog post on using etags with emacs that should help

Actually, I need to use Exuberant Ctags and not Ctags. I did not know that they were two different products.

So, DO NOT get Ctags from Cygwin's repository, instead go here Exuberant Ctags if you want to use it with Emacs. Ctags does not work with Emacs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top