home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / ada / 3732 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  2.6 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!urmel.informatik.rwth-aachen.de!akela!klausf
  2. From: klausf@akela.informatik.rwth-aachen.de (Klaus Frank)
  3. Newsgroups: comp.lang.ada
  4. Subject: Re: Online manual using editor tags
  5. Date: 17 Dec 92 09:16:39 GMT
  6. Organization: Student CS, RWTH Aachen
  7. Lines: 45
  8. Distribution: world
  9. Message-ID: <klausf.724583799@akela>
  10. References: <Bz42uK.I2A@m2.dseg.ti.com>
  11. NNTP-Posting-Host: akela.informatik.rwth-aachen.de
  12.  
  13. anderson@dseg.ti.com (John Anderson) vrites:
  14.  
  15. >Does anyone know of an online version of an Ada tutorial or manual
  16. >that is implemented in a way similar to  a hypertext application?
  17.  
  18. You can use the 'tag' feature of the UNIX editor 'vi' or the GNU
  19. browser 'less' to simulate hypertext links.  If your compiler adds
  20. error messages with references to the LRM as comments to your source
  21. code, you can look up the chapter referred to (recursive if your vi
  22. supports tagstacks) and return to the source code within a few
  23. keystrokes.  You can also use words occurring in the error messages or
  24. the LRM itself as 'links' to the glossary using command '^]' and follow
  25. the references found therein.
  26.  
  27. Please reply by mail if you want me to post a vi tagfile (using search
  28. strings) for the LRM.  (Does anybody know if line numbers can be
  29. searched for more efficient? Does vi use Boyer-Moore fixed string
  30. search?).
  31.  
  32. You can find a similar tagfile for GNU Emacs on wsmr-simtel20.army.mil
  33. in directory pd7:[ADA.GNU-ADA-MODE] named LRMTAGS.NUL.2 . Emacs tag
  34. files contain search strings (chapter headings) and absolute text
  35. positions.  For documentation on Emacs tags, visit node 'Tags' in the
  36. Emacs Info system.
  37.  
  38. --
  39. In 'vi reference, Version 8', Maarten Litmaath <maart@nat.vu.nl> writes:
  40.  
  41. >   Warning: some vi versions don't support the more esoteric features
  42.  
  43.     Tag commands:  (possible rhs for macros, e.g. ':map T :tag ')
  44. >    :ta <name>              | Search in the tags file[s] where <name> is
  45. >                            |   defined (file, line), and go to it.
  46. >    ^]                      | Use the name under the cursor in a `:ta' command.
  47.                              |   (But e.g.'3.3.3' is not recognized
  48.                              |   as a single name).
  49. >    ^T                      | Pop the previous tag off the tagstack and return
  50. >    ^^                      | Edit the alternate (normally the previous) file.
  51.  
  52.     Relevant vi variables:
  53. >    taglength=<*>           | The number of significant characters in tags
  54. >                            |   (0 = unlimited).
  55. >    tags=<string>           | The space-separated list of tags files.
  56.      tagstack                | Enable tagstack feature
  57.  
  58.