Bug 92256 - /usr/bin/etags should be linked to /etc/alternatives
Summary: /usr/bin/etags should be linked to /etc/alternatives
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs (Show other bugs)
(Show other bugs)
Version: 2
Hardware: All Linux
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
: 125519 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2003-06-04 07:57 UTC by Marc MERLIN
Modified: 2007-11-30 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-13 15:50:54 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Marc MERLIN 2003-06-04 07:57:18 UTC
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
-> /usr/bin/ctags-exuberant*

Comment 1 Jens Petersen 2004-01-13 07:50:34 UTC
In emacs-21.3-8 etags will be a symlink to etags.emacs
created at install time if etags doesn't exist.

Comment 2 Jens Petersen 2004-04-15 14:58:04 UTC
Is that good enough for you?

Comment 3 Marc MERLIN 2004-04-15 15:19:20 UTC
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
good step

Comment 4 Jens Petersen 2004-04-16 03:55:34 UTC
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? :)

Comment 5 Marc MERLIN 2004-04-16 16:54:09 UTC
Sure, it's n+1 :)

And yes, I got confused, we're talking about ctags, not vim

Comment 6 Jens Petersen 2004-06-22 01:14:12 UTC
*** Bug 125519 has been marked as a duplicate of this bug. ***

Comment 7 Jens Petersen 2004-08-05 03:12:56 UTC
I'm still confused this issue is about the ctags in Emacs
(and XEmacs) vs the one provided by ctags, and not etags, right?

Comment 8 Sam Steingold 2004-08-05 13:16:25 UTC
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.

Comment 9 Jens Petersen 2004-09-29 07:54:42 UTC
etags should be handled by alternatives in 21.3-15.

Note You need to log in before you can comment on or make changes to this bug.