I have posted a question to the Xemacs NG about the fact that many 
distros install a symlink to exuberant ctags that is named "etags," 
which has an incompatible command-line interface to real etags. Real 
etags is surprisingly hard to get your hands on, without installing GNU 
Emacs.

The upshot of this is that jtags, the script with JDE, doesn't work with 
exuberant etags. After receiving a response on the NG which was "I found 
a binary of the real etags in my emacs install", I decided to modify 
jtags to support exub. etags.

The changes are:

# OLD:
# ${etags_dir}etags  -l none -a -o ${java_dir}/TAGS  \
# "--regex=$class1" "--regex=$class2"  "--regex=$constructor"
# NEW:
# reflag='/b'
# ${etags_dir}etags  --langdef=jtags --language-force=jtags -a -f 
${java_dir}/TAGS  \
# "--regex-jtags=$class1$reflag" "--regex-jtags=$class2$reflag" 
"--regex-jtags=$constructor$reflag"

Really only three commands in the script are changed. But I don't know 
what dialect of regex real etags expected, so I don't know if this works 
properly.

Also, I don't know how well tags work in jtags/JDE. For instance, many 
classes in one project I'm working on are singletons and have a static 
"getInstance" method. find-tag in XEmacs can't seem to locate the proper 
definition. Is this a problem with my conversion, with JDE, or with tag 
support in Emacs for java?

Thanks,
Stuart

Reply via email to