| Date Of Receipt: 22-FEB-1994 12:11:24.62
From: US2RMC::"[email protected]" "Grant Van Dyck"
To: "Joshua Friedman, OSF/UNIX SDE 381-1548" <[email protected]>
CC: [email protected], [email protected]
Subj: Re: ctags question
I should preface this by stating that I'm not a tags user and
so may not be fully conversant with all of the uses, however,
I did try the following:
From the man page for vi it states that to use tags, you must use
ctags to create the database ----
-t tag
Edits the file containing the tag and positions the editor at its
definition. To use this flag, you must first create a database of
function names and their locations using the ctags command.
So I did this:
ctags aha1740.c
which created the file tags in $cwd. I then picked a tag from the file
at random and did 'vi -t <tag_name> aha1740.c
which brought me to the tagged line in the file.
Since I assume you'd like to use a common tags file, and not one in every
dir, I then tried renaming and moving it. I was able to get it to
find the tags file when I defined the full path in my .exrc file
set tag=/home_alone/staff/vandyck/tmp/tgs
This did then exhibit the same behavior as having it locally.
I'm not sure if this is helpful or not, or what behavior you
expected that isn't occuring. If you need more than this
someone more knowledgeable will have to join in.
-Grant
| Can anyone help Clair with this ctags question? thanks...
|
| ------- Forwarded Message
|
| Return-Path: [email protected]
| Delivery-Date: Tue, 22 Feb 94 11:27:01 -0500
| Return-Path: [email protected]
| Received: from abyss.zk3.dec.com by flambe.zk3.dec.com;
| (5.65/1.1.8.2/03Feb94-1150AM)
| id AA07401; Tue, 22 Feb 1994 11:26:59 -0500
| Received: by abyss.zk3.dec.com (5.65/DEC-USSG-ZK3-ULTRIX-09/27/91);
| id AA29771; Tue, 22 Feb 1994 11:26:58 -0500
| Date: Tue, 22 Feb 1994 11:26:58 -0500
| From: [email protected] (Clair Garman Digital Learning Services)
| Message-Id: <[email protected]>
| To: [email protected]
| Subject: tags
|
| Josh,
|
| I have created a tags file using 'ctags' in my home directory to
| use in reading sources. Always before I have been able to place my
| tags file in /usr/lib. This is obviously impossible on abyss. I
| have tried everything I can think of to get vi to use the tags file
| in my home dir and have failed consistently.
|
| Do you use tags? Any ideas how I can get vi to see the tags
| file in my home dir?
|
| I have tried -t and the tag= option in .exrc.
|
| Clair
|
| ------- End of Forwarded Message
|
% Received: by us2rmc.bb.dec.com; id AA14925; Tue, 22 Feb 94 12:07:48 -0500
from localhost by cardinal.zk3.dec.com; (5.65/1.1.8.2/01Nov93-1038AM) id AA17445; Tue, 22 Feb 1994 12:10:16 -050
% Message-Id: <[email protected]>
% To: "Joshua Friedman, OSF/UNIX SDE 381-1548" <[email protected]>
% Cc: [email protected], [email protected]
% Subject: Re: ctags question
% In-Reply-To: Your message of "Tue, 22 Feb 94 11:41:32 EST." <[email protected]>
% Date: Tue, 22 Feb 94 12:10:15 -0500
% From: Grant Van Dyck <[email protected]>
% X-Mts: smtp
|
| Date Of Receipt: 22-FEB-1994 13:21:49.29
From: ABYSS::"[email protected]" "Shashi Mangalat USG"
To: [email protected]
CC: [email protected]
Subj: Re: ctags question
I have had problems with the installed vi and tags files. So I have
built my own which works for me. I don't know if this is fixed in the
latest release of Sterling.
Here is what my .exrc looks like:
set tags=tags\ /u2/shashi/tags
Note: You do need to escape the white space between the two names.
If I have a tags file in my local directory, vi will use that,
otherwise it will use the one from the global path. If you can't get
installed vi to work, you are welcome to copy mine from
alpha:~shashi/tmp/vi.
--shashi
|