Article View: mod.computers.apollo
Article #66A key definition for editing based on a tags file
From: Joe Pato
Date: Mon, 06 Jan 1986 23:30
Date: Mon, 06 Jan 1986 23:30
22 lines
1603 bytes
1603 bytes
I've used this key definition for some time to get functionality
similar to "vi -t tag" through the DM.
# Apollo DM key definition for editing a file based on a tags file
# created with "/usr/ucb/ctags -x ... > tags"
# Currently this function is bound to ^a. It prompts you for the routine
# name to search for, and will fail if the routine name is not found or
# if no tags file exists. The window on the tags file is normally
# left open if an error occurs.
kd ^a cv tags; tt; /%@&'Routine Name: '/;dr;
/[~a-zA-Z0-9$_.]/;xc tag_search;/[~@ @@t]/;dr;/[@ @@t]/;
xc tag_line;/[~@ @@t]/;dr;/[~a-zA-Z0-9$_.@@/]/;xc tag_file; wc;
tdm; es 'cv @@'';xp tag_file;tr;es '@@';';
xp tag_line;tr;en;ke # edit a routine based on a tags file
- Joe Pato
Box 1910 - Dept. of Computer Science
Brown University
Providence, R.I. 02912 (USA)
ARPA: jnp%brown@csnet-relay UUCP: {decvax,ihnp4,allegra}!brunix!jnp
Technical Details
Message-ID:
<8601062330.AA01527@mailhost.CS.Brown.CSNet>Path:
arc1-ca.pugleaf.net!utzoo!decvax!decwrl!amdcad!lll-crg!ucdavis!ucbvax!apolloShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!amdcad!lll-crg!ucdavis!ucbvax!apollo From: jnp@BROWN.CSNET (Joe Pato) Newsgroups: mod.computers.apollo Subject: A key definition for editing based on a tags file Message-ID: <8601062330.AA01527@mailhost.CS.Brown.CSNet> Date: Mon, 6-Jan-86 18:30:44 EST Article-I.D.: mailhost.8601062330.AA01527 Posted: Mon Jan 6 18:30:44 1986 Date-Received: Wed, 8-Jan-86 03:09:32 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 22 Approved: apollo@yale-comix.arpa