etags from emacs is apparently inferior to ctags from vim, except that many
systems (including the ones my engineers used to work on) have etags pointing
to vim's ctags.
Right now, I need to repoint /usr/bin/etags to vim's ctags.
I'm going to do mv etags etags.emacs, ln -s ctags etags
This is all nice and great, except that the next emacs upgrade is going to blow
my symlink away.
Of course, rpm should account for something like this, like I would do on
debian with dpkg-divert etags etags.divert, but in the meantime, we can at
least repackage emacs and vim so that /usr/bin/etags is a symlink to
/etc/alternatives, like it is on debian.
gandalf:~$ l /usr/bin/etags
lrwxrwxrwx 1 root root 23 Aug 13 2002 /usr/bin/etags ->
gandalf:~$ l /etc/alternatives/etags
lrwxrwxrwx 1 root root 24 Aug 13 2002 /etc/alternatives/etags
In emacs-21.3-8 etags will be a symlink to etags.emacs
created at install time if etags doesn't exist.
Is that good enough for you?
Sorry, never saw the January update.
Well, it's better than now, but that's not the proper use of alternatives.
Both vim and emacs should install etags.package, and etags should
point to alternatives, which should then point to the emacs or vim one.
But not blowing the etags symlink away if there is one is already a
Btw you're talking about the ctags package not vim, right?
Have you opened a similar bug against ctags already to help make
this happen? :)
Sure, it's n+1 :)
And yes, I got confused, we're talking about ctags, not vim
*** Bug 125519 has been marked as a duplicate of this bug. ***
I'm still confused this issue is about the ctags in Emacs
(and XEmacs) vs the one provided by ctags, and not etags, right?
etags and ctags are completely different, separate programs.
ctags creates file "tags" usable with VI & derivatives.
etags creates file "TAGS" usable with Emacs & derivatives.
for some unfathomable reason, Emacs _also_ distributes ctags,
while the ctags package apparently comes with etags too.
the "priority list" should be like this:
etags: whatever comes with Emacs, if no Emacs is installed,
use whatever comes with ctags
ctags: whatever comes with ctags (or vim?), if not present,
use whatever comes with Emacs (or Xemacs).
Just make sure that etags does _not_ point to ctags and vv.
etags should be handled by alternatives in 21.3-15.