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
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.
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.
精彩评论