[comp.unix.questions] Problem with vi "tags" file

jerryp@tektools.UUCP (Jerry Peek) (12/12/86)

I'd like to use the "tags" feature of "vi", but I can't get it to work with my
own tags file.  The standard tags file (/usr/lib/tags) works great... for
instance, ":ta printf" takes me right to /usr/src/lib/libc/stdio/printf.c.

But if I do ":se tags=/usr1/jerryp/.lib/vi_tagfile" and store the following two
lines in "vi_tagfile":

p	/usr1/jerryp/.profile	1
tags	/usr1/jerryp/.lib/vi_tagfile	1

...the command ":ta p" gives the error "p: no such tag".  And ":ta tags"
doesn't work, either.

We're running version 3.7 of "vi", 6/7/85.  Any suggestions?  Thanx...

--Jerry Peek, Tektronix, Inc.
US Mail:      MS 74-900, P.O. Box 500, Beaverton, OR 97077
uucp-style:   {allegra,decvax,hplabs,ihnp4,ucbvax}!tektronix!tektools!jerryp
Domain-style: jerryp@tektools.TEK.COM
Phone:        +1 503 627-1603

boykin@custom.UUCP (12/19/86)

>I'd like to use the "tags" feature of "vi", but I can't get it to work with my
>own tags file.
> 	...
>But if I do ":se tags=/usr1/jerryp/.lib/vi_tagfile" and store the following two
>lines in "vi_tagfile":
>
>p	/usr1/jerryp/.profile	1
>tags	/usr1/jerryp/.lib/vi_tagfile	1
>
>...the command ":ta p" gives the error "p: no such tag".  And ":ta tags"
>doesn't work, either.

I'm not sure why VI gave you the "no such tag" message, from the example
you provided it should have worked.  Note two things about
your tags file which may cause you trouble: 1) the third field is usually
a pattern to find the specified tag.  If you provide a number, you will
go to that line number within the file.  It's not an error, but if you
change the file you won't be positioned where you thought you would be.
and 2) the name of your tags file is semi-long.  UNIX VI has a limit of 31
characters for the file name, you're getting close to that.

Joe Boykin
Custom Software Systems