Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!hub.ucsb.edu!eiffel!marc From: marc@eiffel.UUCP (Jean-Marc Nerson) Newsgroups: comp.lang.eiffel Subject: Re: index of features and classes Summary: short -i, class index, ancestors Message-ID: <449@eiffel.UUCP> Date: 11 Nov 90 01:15:45 GMT References: <1990Nov5.183321.19444@ecn.purdue.edu> Organization: Interactive Software Engineering, Santa Barbara CA Lines: 37 In article <1990Nov5.183321.19444@ecn.purdue.edu>, giacomet@venus.ecn.purdue.edu (Frederic B Giacometti) writes: >(...) >In particular, having a natural apprehension concerning tinkering >with troff, the phrase "the troff variable xM is set to one" is >mysterious to me (is this a register? which one?). In the output file, say 'class_name.s' of short -i applied on your Eiffel class file, add the following first line: .nr xM 1 which means in Troff language: ``Define and auto-increment number register xM by 1'' Then follow the Eiffel documentation and do: (nroff class_name.s > stdout_file) >& index To get an `index' file that you can then sort that way: sort -du +0.3 -o index index (see sort (1) fore more details on sorting options). On thing that should also be mentioned is that the `index' file should be printed without the default Troff formating. On way to do it is to add the following first line in your file: .nf which means in Troff language: ``No filling or adjusting of output lines'' > > - What is the elegant way to print the list of ancestors with the >'short | flat' output ? > The list of ancestors can only be printed separately with command `ancestors'. -- Jean-Marc Nerson marc@eiffel.com