Similar to this and this, the problem is you're not running Exuberant Ctags, you're running GNU Emacs etags
, which also provides a ctags
executable. Run ctags --version
and you'll see something like this:
ctags (GNU Emacs 23.1)
Copyright (C) 2009 Free Software Foundation, Inc.
This program is distributed under the terms in ETAGS.README
And if you look in the man page, you'll see that -R
is actually equivalent to --no-regex
. In fact, the man page doesn't even mention recursion as an option.
-R, --no-regex
Don't do any more regexp matching on the following files. May
be freely intermixed with filenames and the --regex option.
You could probably generate the tags recursively using shell magic, but you may run into problems down the road if you're expecting Exuberant Ctags. So the best solution is probably to install the ctags you want instead:
sudo apt-get install exuberant-ctags
Exuberant Ctags can also be installed from source:
http://ctags.sourceforge.net/