One more stone against tags-def-pattern. (XEmacs 21.5)
Adding a new language to etags.el is a pain :(
I found no obvious ways of where and how to customize in etags.el in order to
add support for a new language. Had to hack it and re-write for my needs :(
May be I'm missing something?
Nick.
intro: "SJT" == Stephen J Turnbull <stephen(a)xemacs.org> writes:
SJT> Anybody know?
SJT> From: newsspam4(a)robf.de Subject: etags.el (21.4.14) does
SJT> not recognize C++ member definitions Newsgroups: comp.emacs.xemacs Date:
SJT> Wed, 19 Nov 2003 13:12:43 +0100
SJT> With etags from 21.4.14 called like
SJT> etags --lang=c++ --members
SJT> on my C++ sources I get a TAGS file like
SJT> NNQuery::NNQuery(354,8727 APNNQuery::APNNQuery(360,8830
SJT> but `find-tag' does not show me the definitions of C++ class members as
SJT> it does not recognize them. This can be fixed by setting
SJT> `tags-def-pattern' to include ":" as follows.
SJT> ;; fix problems with unrecognized C++ tags due to missing ":" in
regexp
SJT> (defconst tags-def-pattern
SJT> ;; old "\\(.*[ \t]+\\)?\\**\\(\\(\\sw\\|\\s_\\)+\\)[ ();,\t]*\C-?"
new
SJT> "\\(.*[ \t]+\\)?\\**\\(\\(\\sw\\|\\s_\\|:\\)+\\)[ ();,\t]*\C-?" )
SJT> But I wonder if there is another way of doing this or is it really a
SJT> bug?
SJT> Bye Robert. ----------
SJT> -- Institute of Policy and Planning Sciences
SJT>
http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1
SJT> Tsukuba 305-8573 JAPAN Ask not how you can "do" free software
business;
SJT> ask what your business can "do for" free software.