home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 133_01 / newfor48 < prev    next >
Text File  |  1985-03-10  |  5KB  |  86 lines

  1. NEW THINGS AND BUG FIXES IN 'e' Version 4.8
  2.  
  3. The  following  itemises the significant changes between versions  4.6a  and 
  4. version 4.8a of the screen editor, 'e'.  Thanks to those who pointed out the 
  5. bugs.
  6.  
  7. 1. The major additional feature is an 'undo' key. Version 4.6a had an 'oops' 
  8. key  which  restore  the current line to its initial state if  the  key  was 
  9. pressed  before you moved off that line.  Version 4.7c provides a much  more 
  10. powerful facility.
  11.  
  12. Every time a line is changed, 'e' keeps a record of the change. Pressing the 
  13. 'undo'  key (by default ^\) will undo the last change made.  A rolling stack 
  14. of the 40 last changes made is kept,  so that you can always undo up to  the 
  15. last forty line changes by pressing the undo key as many times as required.
  16.  
  17. A  line change is made (and stored in the undo history stack) every time you 
  18. insert,  delete,  or  amend a line.  Thus a block delete of ten  lines  will 
  19. involve  10  line  changes  being stored on the  stack.  All  line  changing 
  20. commands  go on the stack,  so that you can undo all the block commands  and 
  21. even  undo the effect of reading in a file (but remember that only the  last 
  22. 40 lines read in can be undone).
  23.  
  24. If you try to undo more commands than remain on the history stack, the error 
  25. message 'Nothing to undo' will appear.
  26.  
  27. 2. A new feature makes it easier to avoid mistakes in matching brackets when 
  28. writing programs. Whenever you enter a closing bracket ( a ')', ']' or '}'), 
  29. the  cursor points briefly at the corresponding opening bracket,  if  it  is 
  30. displayed  on  the  screen.  Note that the 'hint' that this  gives  will  be 
  31. confused  by unpaired brackets within comments and character  strings.  This 
  32. feature  helps  when writing programs that involve lots of  nested  brackets 
  33. (it's particularly useful if you ever write programs in LISP,  which is full 
  34. of brackets). The idea was 'borrowed' from the InterLisp-D structure editor, 
  35. Dedit, but it is a boon for programs written in any language.
  36.  
  37. 3. There are new 'Edit Context' options, and a better screen format.
  38.  
  39. 4.  The  line  display  routine optimises the use of  cursor  addressing  to 
  40. display the screen as fast as possible.
  41.  
  42. 5. Version 4.7 would only work with vanilla CP/M 2.x. The new version should 
  43. work  with any CP/M of version 2 or later,  including version 3 (CP/M Plus). 
  44. The clever tricks that catch BDOS errors and avoid a warm boot at the end of 
  45. an edit are dependent on the operating system being CP/M 2.2. The editor now 
  46. asks the operating system for a version number. If it is not 20 (the version 
  47. number  of CP/M 2.x),  the clever tricks are not used.  This means that  'e' 
  48. will  run  on any CP/M or CP/M-like system that supports CP/M  2.x  function 
  49. calls,  although on non-CP/M 2.x systems,  you won't benefit from protection 
  50. from BDOS errors.  CP/M 3.x (CP/M plus) has a BDOS call that catches errors. 
  51. If 'e' finds that you are using CP/M 3,  it sets the error mode to  'display 
  52. and continue editing'. 
  53.  
  54. 6.  The find and alter commands have an additional option:  Ignore case.  As 
  55. well  as ignoring the case of the string to find,  'find' and 'alter'  using 
  56. this  option  will also ignore the parity bit (set by some word  processors, 
  57. such as WordStar, on some characters).
  58.  
  59. 7.  The  editor  now  accepts user area numbers in  file  names,  using  the 
  60. convention 'UU/D:FFFFFFFF.ext',  where 'UU/' is a user number (eg 10/),  and 
  61. allows  the default user area to be changed when selecting another  file  to 
  62. edit. The current default user area number is shown in the directory display 
  63. if it is not 0.
  64.  
  65. 8.  There are additional versions of the 'eterm' terminal configuration file 
  66. for the ADDS range of terminals (eadds), for the DEC VT52 (and Visual 50 and 
  67. 55) terminals (edec52) and for the Kaypro 10 computer (ekay).  There are new 
  68. functions,  terminit()  and termfini(),  in the terminal configuration files 
  69. which allow for terminals which require some initialisation sequence  before 
  70. 'e' starts up, and/or some 'finalisation' sequence just before 'e' ends.
  71.  
  72. 9.  There  is  a  new command line option.  If you include  a  line  number, 
  73. preceded  by a dash,  on the command line (eg A> e myfile -80),  the  editor 
  74. starts up with that line as the current line. This is useful if your compier 
  75. reports an error in your program by source line number.
  76.  
  77. 10. The following bugs have been cured: a. in some circumstances, the screen 
  78. did  not  display  properly when scrolling at the end  of  a  file.  b.  the 
  79. algorithm for deleting words was changed to make it behave in a more obvious 
  80. way. c. the block scroll command (^OS) worked incorrectly if you changed the 
  81. current  line immediately after the performing the command.  d.  updating of 
  82. the display when the Horizontal scroll option is on and the cursor is  moved 
  83. to the left now only occurs when required to keep the cursor on the screen.
  84.  
  85. G Nigel Gilbert 23  October 1984
  86.