jnp@BROWN.CSNET (Joe Pato) (01/07/86)
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