home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / Applications / Em_Editor / emdoc < prev    next >
Encoding:
Text File  |  1998-10-12  |  3.5 KB  |  121 lines

  1.      How to Generate 'em'
  2.  
  3.  
  4.      gfc 17
  5.  
  6.       Thu Apr 29 1976
  7.  
  8.  
  9.                           How to Generate the QMC Unix Editor 'em'
  10.                           ---------------------------------------
  11.  
  12.  
  13.           Author:                 George Coulouris
  14.  
  15.                                 Computer Systems Laboratory
  16.                Queen Mary College  Mile End Road  London E1 4NS (01-980 4811 x751)
  17.  
  18.  
  19.  
  20.           Summary
  21.  
  22.                This is the system documentation for 'em'. It should  be  used
  23.                in  conjunction  with  the  manual  section supplied with 'em'
  24.                (EM(I), 3/22/76).  A  tutorial  introduction  to  'em'  is  in
  25.                preparation.
  26.  
  27.  
  28.  
  29.  
  30.           Files
  31.  
  32.                There are five relevant files:
  33.  
  34.                        emdoc           - the text of this document
  35.  
  36.                        em.n            - the text of the manual section
  37.                                                on 'em' in 'nroff' format
  38.  
  39.                        emhelp          - a file containing a summary of
  40.                                                editor commands, used in
  41.                                                the 'help' command
  42.  
  43.                        em1.c           - the first of the two C  source  seg-
  44.                ments
  45.  
  46.                        em2.c           - the second and last segment
  47.  
  48.  
  49.           Generation
  50.  
  51.                To compile 'em':
  52.  
  53.                        cc -n -s em1.c em2.c
  54.  
  55.                leaves a suitable object program in 'a.out'. Just move  it  to
  56.                '/bin/em':
  57.  
  58.                        mv a.out /bin/em
  59.  
  60.                                                                           1
  61.      How to Generate 'em'
  62.  
  63.  
  64.                to produce a command 'em'. If you also want a version with all
  65.                of the 'em' features except prompting, you can make a link  to
  66.                the  same  object  program with any name not having 'm' as its
  67.                second character. We use the 'ed' name:
  68.  
  69.                        ln /bin/em /bin/ed
  70.  
  71.                If you want the editor to be  permanently  held  in  the  disc
  72.                swapping  area (and therefore entered more quickly in response
  73.                to the 'em' command) change the mode:
  74.  
  75.                        chmod 1755 /bin/em
  76.  
  77.           Frills
  78.  
  79.                If  you want the 'h' command to provide a screen full of help,
  80.                put the text for the help in /usr/lib/emhelp. You can use  the
  81.                file supplied, or make your own.
  82.  
  83.                There is a rather pleasing feature  available  when  you  type
  84.                '^V' in the 'o' command that enables the spelling of a word to
  85.                be given from a lexicon file once the first few letters of the
  86.                word  have  been typed.  This is implemented through a command
  87.                in our Unix system:
  88.  
  89.                        spell arg
  90.  
  91.                that takes an argument containing  an  alphabetic  string  and
  92.                outputs  all  of  the  words in a lexicon file that begin with
  93.                that string.  Our version of the spell program is a crude (but
  94.                fast) affair using 26 files. There must be a better way, so if
  95.                you want the '^V' facility we suggest you implement  your  own
  96.                spell  command.  'em' will use it if it is there, otherwise it
  97.                will display a suitable message.
  98.  
  99.  
  100.                               ---------------/----------------
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.                                                                           2
  121.