Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* No tag stack in vi
@ 1994-10-18  1:42 Shmuel Einstein and Assoc
  1994-10-21 13:16 ` Gary Newman
  0 siblings, 1 reply; 6+ messages in thread
From: Shmuel Einstein and Assoc @ 1994-10-18  1:42 UTC (permalink / raw)


Hey guys, how come in OSF/1 vi, there's no tag stack?  You can tag to
a symbol, but can't back up through your tags.  This is true on both
DEC OSF/1 V2.0 and IBM AIX V3.2.  This has been cramping my coding
style for months, and I'm sick of it!  Something's gonna blow...

So, how come, guys, huh, huh?  Does anyone know where I can get a vi
that works?

-- 
J Scott Peter XXXIII   //  Wrong thinking is punishable.
scotty@netcom.com     //  Right thinking will be as quickly rewarded.
Los Angeles          //  You will find it an effective combination.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: No tag stack in vi
  1994-10-18  1:42 No tag stack in vi Shmuel Einstein and Assoc
@ 1994-10-21 13:16 ` Gary Newman
  1994-10-24  9:25   ` Philip Shearer @ZUO-DC EBS-Team
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Newman @ 1994-10-21 13:16 UTC (permalink / raw)


Shmuel Einstein and Assoc (scotty@netcom.com) wrote:
: Hey guys, how come in OSF/1 vi, there's no tag stack?  You can tag to

Ahhh.  Thanks for confirming this.  I thought that the vi that comes
with SUNOS has tag stacks too (although undocumented, I believe).

I sure miss the tag stacks in OSF/1.
-- 
Gary Newman                             gnewman@xmx.com
XMX Corp.                               voice: (508) 670-8444
46 Manning Road                         Fax:   (508) 670-8448
Billerica, MA 01821


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: No tag stack in vi
  1994-10-21 13:16 ` Gary Newman
@ 1994-10-24  9:25   ` Philip Shearer @ZUO-DC EBS-Team
  1994-10-24 13:19     ` Gary Newman
  1994-10-24 14:23     ` Peter da Silva
  0 siblings, 2 replies; 6+ messages in thread
From: Philip Shearer @ZUO-DC EBS-Team @ 1994-10-24  9:25 UTC (permalink / raw)


gnewman@world.std.com (Gary Newman) writes:
: Shmuel Einstein and Assoc (scotty@netcom.com) wrote:
: : Hey guys, how come in OSF/1 vi, there's no tag stack?  You can tag to
: 
: Ahhh.  Thanks for confirming this.  I thought that the vi that comes
: with SUNOS has tag stacks too (although undocumented, I believe).
: 
: I sure miss the tag stacks in OSF/1.

I am not sure what you mean by a "tag stack"  but I asume that you mean
the abilty to use ^T and ^] with a tags file produced with ctags(1)

ctags *.c
vi file.c 

At a function call ^T takes me to the function body.
^] I would expect to return me to the calling place instead it seems 
to work as a duplicate of ^T -- to me this suggests that either it is
broken, :-(  or I have not set a flag in vi or ctags so that ^] returns
me to the last ^T

--
Regards Philip Shearer

Disclaimer: Please note that the above is a personal view and 
should not be construed as an official comment from DEC.

"He never liked me" Itailian patient, after shooting the doctor 
treating him for paranioa (Independent on Sunday 9/10/94)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: No tag stack in vi
  1994-10-24  9:25   ` Philip Shearer @ZUO-DC EBS-Team
@ 1994-10-24 13:19     ` Gary Newman
  1994-10-24 14:23     ` Peter da Silva
  1 sibling, 0 replies; 6+ messages in thread
From: Gary Newman @ 1994-10-24 13:19 UTC (permalink / raw)


Philip Shearer @ZUO-DC EBS-Team (pbs@zuunix.zuo.dec.com) wrote:
: gnewman@world.std.com (Gary Newman) writes:
: : Shmuel Einstein and Assoc (scotty@netcom.com) wrote:
: : : Hey guys, how come in OSF/1 vi, there's no tag stack?  You can tag to
: : 
: : Ahhh.  Thanks for confirming this.  I thought that the vi that comes
: : with SUNOS has tag stacks too (although undocumented, I believe).
: : 
: : I sure miss the tag stacks in OSF/1.

: I am not sure what you mean by a "tag stack"  but I asume that you mean
: the abilty to use ^T and ^] with a tags file produced with ctags(1)
[snip]

In SUNOS vi, at least, when you jump to a tag  (say foo), and then from there
jump to a tag (say bar).  The tags are on a stack, so popping off the top tag
(I think it was the :po command that did this) brings you back to the tag foo.

like so:
in file x.c type :ta foo
vi switches to file y.c at line where foo is declared.
in file y.c type :ta bar
vi switches to file z.c at line where bar is delcared.
in file z.c type :po and vi switches back to file y.c where foo is declared
in file y.c type :po and vi switches back to file x.y where you started it all
-- 
Gary Newman                             gnewman@xmx.com
XMX Corp.                               voice: (508) 670-8444
46 Manning Road                         Fax:   (508) 670-8448
Billerica, MA 01821


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: No tag stack in vi
  1994-10-24  9:25   ` Philip Shearer @ZUO-DC EBS-Team
  1994-10-24 13:19     ` Gary Newman
@ 1994-10-24 14:23     ` Peter da Silva
  1994-10-24 15:35       ` Casper H.S. Dik
  1 sibling, 1 reply; 6+ messages in thread
From: Peter da Silva @ 1994-10-24 14:23 UTC (permalink / raw)


In article <38fuin$qdv@mrnews.mro.dec.com>,
Philip Shearer @ZUO-DC EBS-Team <pbs@zuunix.zuo.dec.com> wrote:
> At a function call ^T takes me to the function body.

It does????

> ^] I would expect to return me to the calling place instead it seems 
> to work as a duplicate of ^T -- to me this suggests that either it is
> broken, :-(  or I have not set a flag in vi or ctags so that ^] returns
> me to the last ^T

So far as I can recall, back to 1979 or so, ^] has always taken you to
the function body. I wasn't aware of a binding for ^T. Perhaps you're
thinking of something in nvi?
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: No tag stack in vi
  1994-10-24 14:23     ` Peter da Silva
@ 1994-10-24 15:35       ` Casper H.S. Dik
  0 siblings, 0 replies; 6+ messages in thread
From: Casper H.S. Dik @ 1994-10-24 15:35 UTC (permalink / raw)


peter@nmti.com (Peter da Silva) writes:

>So far as I can recall, back to 1979 or so, ^] has always taken you to
>the function body. I wasn't aware of a binding for ^T. Perhaps you're
>thinking of something in nvi?

The binding for ^T (in SunOS 4/5, IRIX 5.x) is to take you back to
the last place where you typed ^].  With ^] you can follow a number of
tags and with ^T you can walk back the places you came from.  Quite handy.

Casper


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1994-10-24 15:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-18  1:42 No tag stack in vi Shmuel Einstein and Assoc
1994-10-21 13:16 ` Gary Newman
1994-10-24  9:25   ` Philip Shearer @ZUO-DC EBS-Team
1994-10-24 13:19     ` Gary Newman
1994-10-24 14:23     ` Peter da Silva
1994-10-24 15:35       ` Casper H.S. Dik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox