home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / DevTools / aa_m68k_Only / NXLogo / NXLogoLibrary / help / edit < prev    next >
Encoding:
Text File  |  1992-07-09  |  2.4 KB  |  39 lines

  1. edit --Command, zero or one input.  Abbreviation: ed
  2.      The input to this command must be a word, which is the name of a  pro-
  3.      cedure,  or a list of words, each of which is the name of a procedure.
  4.      (Unlike the to command, but like all other Logo procedures,  the  edit
  5.      command  evaluates  its input, so you must use a quotation mark before
  6.      the procedure name, if only one is given, to indicate that it  is  the
  7.      name  itself which is the input to edit; otherwise Logo would actually
  8.      run the procedure to calculate the input to edit.)  The procedure  you
  9.      name  may  or  may  not already be defined.  Logo responds to the edit
  10.      command by running the text editor edt, editing the definition of  the
  11.      procedure(s)  named  in its input.  (If a procedure was not previously
  12.      defined, Logo creates an initial definition for it which contains only
  13.      a  title  line and the end line.) You then edit the definition(s) with
  14.      edt.  When you write the file and leave edt, Logo will use the  edited
  15.      file  as the definition(s) of the procedure(s).  You must not put any-
  16.      thing in the file except procedure definitions; in other words,  every
  17.      nonempty  line  in  the  file must be between a "to" line and an "end"
  18.      line.
  19.  
  20.      If the edit command is given with no input, edt is given the same file
  21.      as  from  the last time you used the edit command.  This is a conveni-
  22.      ence for editing the same procedure(s) repeatedly.
  23.  
  24.      If, while editing, you change your mind and want to leave edt  without
  25.      redefining  anything, use the command ESC ^Z instead of the normal ^Z.
  26.      This special way of leaving edt tells Logo not to redefine  your  pro-
  27.      cedures.   You  have the choice, before exiting edt, of writing or not
  28.      writing the temporary file which contains  the  definitions.   If  you
  29.      don't  write the file, another edit command with no input will re-read
  30.      the previous contents of the temporary file; if you do,  another  edit
  31.      will re-read the new version.
  32.  
  33.      If your Unix environment contains a variable named  EDITOR,  the  con-
  34.      tents  of that variable is used as the name of the text editor program
  35.      instead of the standard edt.  The variable can contain  a  full  path-
  36.      name,  or  just  a program name if the program can be found in /bin or
  37.      /usr/bin.  Your favorite editor may not have a facility like edt's ESC
  38.      ^Z to abort redefinition.
  39.