home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / jove-4.16-bin.lha / man / cat1 / jove.0 next >
Text File  |  1996-09-15  |  15KB  |  397 lines

  1.  
  2.  
  3.  
  4. JOVE(1)                                                   JOVE(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        jove - an interactive display-oriented text editor
  9.  
  10. SSYYNNOOPPSSIISS
  11.        jove [-d directory] [-w] [-t tag] [+[n] file] [-p file] [files]
  12.        jove -r
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.        JOVE  is  Jonathan's Own Version of Emacs.  It is based on
  16.        the original  EMACS  editor  written  at  MIT  by  Richard
  17.        Stallman.   Although  JOVE  is meant to be compatible with
  18.        EMACS, there are some major differences  between  the  two
  19.        editors   and   you   shouldn't  rely  on  their  behaving
  20.        identically.
  21.  
  22.        JOVE works on any  reasonable  display  terminal  that  is
  23.        described  in  the  _t_e_r_m_c_a_p  file (see TERMCAP(5) for more
  24.        details).  When you  start  up  JOVE,  it  checks  to  see
  25.        whether  you  have your _T_E_R_M environment variable set.  On
  26.        most systems that will automatically be set  up  for  you,
  27.        but  if  it's  not JOVE will ask you what kind of terminal
  28.        you are using.  To avoid having to type  this  every  time
  29.        you  run  JOVE  you can set your _T_E_R_M environment variable
  30.        yourself.  How you do this depends on which shell you  are
  31.        running.   If  you are running the C Shell, as most of you
  32.        are, you type
  33.  
  34.             % setenv TERM _t_y_p_e
  35.  
  36.        and with the Bourne Shell, you type
  37.  
  38.             $ TERM= _t_y_p_e ; export TERM
  39.  
  40.        where _t_y_p_e is the name of the kind  of  terminal  you  are
  41.        using  (e.g.,  vt100).   If  neither  of  these  works get
  42.        somebody to help you.
  43.  
  44. IINNVVOOKKIINNGG JJOOVVEE
  45.        If you run JOVE with no arguments you will be placed in an
  46.        empty  buffer,  called _M_a_i_n_.  Otherwise, any arguments you
  47.        supply are considered file names and each is  "given"  its
  48.        own   buffer.   Only  the  first  file  is  actually  read
  49.        in--reading other files is deferred until you actually try
  50.        to  use  the  buffers  they  are attached to.  This is for
  51.        efficiency's sake: most of the time, when you run JOVE  on
  52.        a  big  list  of  files,  you end up editing only a few of
  53.        them.
  54.  
  55.        The names of all of the files  specified  on  the  command
  56.        line  are  saved in a buffer, called _*_m_i_n_i_b_u_f_*_.  The mini-
  57.        buffer is a special JOVE buffer that is used when JOVE  is
  58.        prompting  for  some  input to many commands (for example,
  59.        when JOVE is prompting for a file  name).   When  you  are
  60.        being  prompted  for a file name, you can type C-N (that's
  61.  
  62.  
  63.  
  64.                          12 February 1986                       1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. JOVE(1)                                                   JOVE(1)
  71.  
  72.  
  73.        Control-N) and C-P to cycle through the list of files that
  74.        were specified on the command line.  The file name will be
  75.        inserted where you are typing and then you can edit it  as
  76.        if you typed it in yourself.
  77.  
  78.        JOVE recognizes the following switches:
  79.  
  80.        _-_d     The  following  argument is taken to be the name of
  81.               the current directory.  This is  for  systems  that
  82.               don't  have a version of C shell that automatically
  83.               maintains the _C_W_D environment variable.  If  _-_d  is
  84.               not  specified  on  a  system  without a modified C
  85.               shell, JOVE will have to  figure  out  the  current
  86.               directory  itself,  and that can be VERY slow.  You
  87.               can simulate the modified C shell  by  putting  the
  88.               following lines in your C shell initialization file
  89.               (.cshrc):
  90.  
  91.                    alias cd        'cd \!*; setenv CWD $cwd'
  92.                    alias popd      'popd \!*; setenv CWD $cwd'
  93.                    alias pushd     'pushd \!*; setenv CWD $cwd'
  94.  
  95.        _+_n     Reads  the  file,  designated  by   the   following
  96.               argument,  and  positions  point  at  the _n_'_t_h line
  97.               instead of the (default) 1'st line.   This  can  be
  98.               specified  more than once but it doesn't make sense
  99.               to use it twice on the same file; in that case  the
  100.               second  one  wins.  If no numeric argument is given
  101.               after the +, the point is positioned at the end  of
  102.               the file.
  103.  
  104.        _-_p     Parses the error messages in the file designated by
  105.               the following argument.   The  error  messages  are
  106.               assumed  to  be  in  a  format  similar  to  the  C
  107.               compiler, LINT, or GREP output.
  108.  
  109.        _-_t     Runs  the  _f_i_n_d_-_t_a_g  command  on  the   string   of
  110.               characters immediately following the -t if there is
  111.               one (as in -tTagname), or on the following argument
  112.               (as in -t Tagname) otherwise (see ctags(1)).
  113.  
  114.        _-_w     Divides  the  window  in  two.   When this happens,
  115.               either the same file is displayed in both  windows,
  116.               or  the  second  file  in  the  list is read in and
  117.               displayed in its window.
  118.  
  119. RREECCOOVVEERRIINNGG BBUUFFFFEERRSS AAFFTTEERR AA CCRRAASSHH
  120.        The _-_r option of jove runs the JOVE recover program.   Use
  121.        this  when  the  system  crashes,  or JOVE crashes, or you
  122.        accidently get logged out while in JOVE.  If there are any
  123.        buffers to be recovered, this will find them.
  124.  
  125.        Recover  looks  for  JOVE buffers that are left around and
  126.        are owned by you.   (You  cannot  recover  other  peoples'
  127.  
  128.  
  129.  
  130.                          12 February 1986                       2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. JOVE(1)                                                   JOVE(1)
  137.  
  138.  
  139.        buffers,  obviously.)   If there were no buffers that were
  140.        modified at the time  of  the  crash  or  there  were  but
  141.        recover  can't get its hands on them, you will be informed
  142.        with  the  message,  "There  is   nothing   to   recover."
  143.        Otherwise, recover prints the date and time of the version
  144.        of the buffers it has, and  then  waits  for  you  type  a
  145.        command.
  146.  
  147.        To  get a list of the buffers recover knows about, use the
  148.        _l_i_s_t command.  This will list  all  the  buffers  and  the
  149.        files  and the number of lines associated with them.  Next
  150.        to each buffer is a number.  When you want  to  recover  a
  151.        buffer,  use  the  _g_e_t  command.  The syntax is _g_e_t _b_u_f_f_e_r
  152.        _f_i_l_e_n_a_m_e where _b_u_f_f_e_r is either the buffer's name  or  the
  153.        number  at  the  beginning of the line.  If you don't type
  154.        the buffer name or the filename, recover will  prompt  you
  155.        for them.
  156.  
  157.        If  there are a lot of buffers and you want to recover all
  158.        of them, use the _r_e_c_o_v_e_r command.  This will recover  each
  159.        buffer  to  the  name of the buffer with ".#" prepended to
  160.        the name (so that the original  isn't  over-written).   It
  161.        asks  for each file and if you want to restore that buffer
  162.        to that name you type "yes".  If you want to  recover  the
  163.        file  but  to a different name, just type the new name in.
  164.        If you type "no" recover will skip that file and go on  to
  165.        the next one.
  166.  
  167.        If you want to look at a buffer before deciding to recover
  168.        it, use the _p_r_i_n_t command.  The syntax for this  is  _p_r_i_n_t
  169.        _b_u_f_f_e_r  where  _b_u_f_f_e_r  again  is  either  its  name or the
  170.        number.  You can type ^C if you want to abort printing the
  171.        file  to  the  terminal,  and recover will respond with an
  172.        appropriate message.
  173.  
  174.        When you're done and have all the buffers you  want,  type
  175.        the _q_u_i_t command to leave.  You will then be asked whether
  176.        it's okay to delete the  tmp  files.   Most  of  the  time
  177.        that's okay and you should type "yes".  When you say that,
  178.        JOVE removes all traces of those buffers and you won't  be
  179.        able  to  look  at  them  again.   (If  you recovered some
  180.        buffers they will still be around, so don't  worry.)   So,
  181.        if  you're not sure whether you've gotten all the buffers,
  182.        you should answer "no" so  that  you'll  be  able  to  run
  183.        recover  again  at  a  later time (presumably after you've
  184.        figured out which ones you want to save).
  185.  
  186.        If you type ^C at any time other than when you're printing
  187.        a  file to the terminal, recover will exit without a word.
  188.        If you do this but wish you hadn't, just type "jove -r" to
  189.        the shell again, and you will be put back with no loss.
  190.  
  191. GGEETTTTIINNGG HHEELLPP
  192.        Once  in JOVE, there are several commands available to get
  193.  
  194.  
  195.  
  196.                          12 February 1986                       3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. JOVE(1)                                                   JOVE(1)
  203.  
  204.  
  205.        help.  To execute any JOVE  command,  you  type  "<ESC>  X
  206.        command-name"  followed by <Return>.  To get a list of all
  207.        the JOVE commands you type "<ESC> X" followed by "?".  The
  208.        _d_e_s_c_r_i_b_e_-_b_i_n_d_i_n_g_s  command  can  be  used  to  get  a list
  209.        containing each key, and its associated command (that  is,
  210.        the  command  that  gets executed when you type that key).
  211.        If you want to save the list of bindings, you can set  the
  212.        jove  variable _s_e_n_d_-_t_y_p_e_o_u_t_-_t_o_-_b_u_f_f_e_r to ON (using the _s_e_t
  213.        command), and then execute the _d_e_s_c_r_i_b_e_-_b_i_n_d_i_n_g_s  command.
  214.        This  will create a buffer and put in it the bindings list
  215.        it normally would have printed on the  screen.   Then  you
  216.        can  save  that  buffer to a file and print it to use as a
  217.        quick reference card.  (See VARIABLES below.)
  218.  
  219.        Once you know the name of a command, you can find out what
  220.        it  does  with the _d_e_s_c_r_i_b_e_-_c_o_m_m_a_n_d command, which you can
  221.        invoke quickly by typing "ESC  ?".   The  _a_p_r_o_p_o_s  command
  222.        will  give  you  a list of all the command with a specific
  223.        string in their names.  For example, if you want  to  know
  224.        the  names  of  all  the  commands that are concerned with
  225.        windows, you can run "apropos" with the keyword _w_i_n_d_o_w_.
  226.  
  227.        If you're not familar with the EMACS command set, it would
  228.        be  worth  your  while  to use run TEACHJOVE.  Do do that,
  229.        just type "teachjove" to your shell and you will be placed
  230.        in  JOVE  in  a  file which contains directions.  I highly
  231.        recommend this for beginners; you may save yourself a  lot
  232.        of time and headaches.
  233.  
  234. KKEEYY BBIINNDDIINNGGSS aanndd VVAARRIIAABBLLEESS
  235.        You  can  alter  the  key  bindings  in  JOVE  to fit your
  236.        personal tastes.  That is, you can change what a key  does
  237.        every time you strike it.  For example, by default the C-N
  238.        key is bound to the command _n_e_x_t_-_l_i_n_e and so when you type
  239.        it  you move down a line.  If you want to change a binding
  240.        or add a new one, you use the  _b_i_n_d_-_t_o_-_k_e_y  command.   The
  241.        syntax is "bind-to-key <command> key".
  242.  
  243.        You can also change the way JOVE behaves in little ways by
  244.        changing the value of some variables with the _s_e_t command.
  245.        The  syntax  is  "set  <variable> value", where value is a
  246.        number or a string, or "on" or  "off",  depending  on  the
  247.        context.   For  example,  if  you want JOVE to make backup
  248.        files, you set the "make-backup-files" variable  to  "on".
  249.        To see the value of a variable, use the "print <variable>"
  250.        command.
  251.  
  252. IINNIITTIIAALLIIZZAATTIIOONN
  253.        JOVE automatically reads commands from  an  initialization
  254.        file  in  your  HOME directory, called ".joverc".  In this
  255.        file you can place commands that you would  normally  type
  256.        in  JOVE.   If  you like to rearrange the key bindings and
  257.        set some variables every  time  you  get  into  JOVE,  you
  258.        should  put  them in your initialization file.  Here are a
  259.  
  260.  
  261.  
  262.                          12 February 1986                       4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. JOVE(1)                                                   JOVE(1)
  269.  
  270.  
  271.        few lines from mine:
  272.             set match-regular-expressions on
  273.             auto-execute-command auto-fill /tmp/Re\|.*drft
  274.             bind-to-key i-search-forward ^\
  275.             bind-to-key i-search-reverse ^R
  276.             bind-to-key find-tag-at-point ^[^T
  277.             bind-to-key scroll-down ^C
  278.             bind-to-key grow-window ^Xg
  279.             bind-to-key shrink-window ^Xs
  280.        (Note that  the  Control  Characters  can  be  either  two
  281.        character  sequences  (e.g. ^ and C together as ^C) or the
  282.        actual control character.  If you want  to  use  an  ^  by
  283.        itself  you  must  BackSlash  it  (e.g., bind-to-key grow-
  284.        window ^X\^ binds grow-window to "^X^").
  285.  
  286. SSOOMMEE MMIINNOORR DDEETTAAIILLSS
  287.        You should type C-\ instead of C-S in many instances.  For
  288.        example,  the  way to search for a string is documented as
  289.        being "C-S" but in reality you should type "C-\".  This is
  290.        because C-S is the XOFF character (what gets sent when you
  291.        type the NO SCROLL key), and clearly that won't work.  The
  292.        XON  character  is  "C-Q" (what gets sent when you type NO
  293.        SCROLL again) which is documented  as  the  way  to  do  a
  294.        quoted-insert.  The alternate key for this is "C-^" (typed
  295.        as "C-`" on vt100's and its look-alikes).  If you want  to
  296.        enable  C-S  and  C-Q and you know what you are doing, you
  297.        can put the line:
  298.             set allow-^S-and-^Q on
  299.        in your initialization file.
  300.  
  301.        If your terminal has a metakey, JOVE will use  it  if  you
  302.        turn  on the "meta-key" variable.  JOVE will automatically
  303.        turn on "meta-key" if  the  METAKEY  environment  variable
  304.        exists.    This  is  useful  for  if  you  have  different
  305.        terminals (e.g., one at home and one at work) and one  has
  306.        a metakey and the other doesn't.
  307.  
  308. FFIILLEESS
  309.        /ade/lib/jove/jove.rc - system wide initialization file
  310.        ~/.joverc - personal initialization file
  311.        /tmp - where temporary files are stored
  312.        /ade/lib/jove/teach-jove - the interactive tutorial
  313.        /ade/lib/jove/portsrv  -  for  running  shells  in windows
  314.        (pdp11 only)
  315.  
  316. SSEEEE AALLSSOO
  317.        ed(1) - for a description of regular expressions
  318.        teachjove(1) - for an interactive JOVE tutorial.
  319.  
  320. DDIIAAGGNNOOSSTTIICCSS
  321.        JOVE diagnostics are meant to be self-explanatory, but you
  322.        are  advised  to seek help whenever you are confused.  You
  323.        can easily lose a lot of work if you  don't  know  EXACTLY
  324.        what you are doing.
  325.  
  326.  
  327.  
  328.                          12 February 1986                       5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. JOVE(1)                                                   JOVE(1)
  335.  
  336.  
  337. BBUUGGSS
  338.        Lines can't be more than 1024 characters long.
  339.  
  340.        Searches can't cross line boundaries.
  341.  
  342. AAUUTTHHOORR
  343.        Jonathan Payne
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.                          12 February 1986                       6
  395.  
  396.  
  397.