home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / editors / 2849 < prev    next >
Encoding:
Text File  |  1992-11-23  |  3.4 KB  |  74 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!ux2.cso.uiuc.edu!ejk
  3. From: ejk@ux2.cso.uiuc.edu (Ed Kubaitis - CCSO)
  4. Subject: Re: Anyone use SAM?
  5. References: <BEVAN.92Nov18104650@beluga.cs.man.ac.uk> <722179001.3244@minster.york.ac.uk> <1992Nov20.085046@se28.wg2.waii.com> <1992Nov22.194309.17333@prl.dec.com>
  6. Message-ID: <By6Juy.Fvq@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois - Urbana
  9. Date: Mon, 23 Nov 1992 17:42:33 GMT
  10. Keywords: sam, ai
  11. Lines: 61
  12.  
  13. boyd@prl.dec.com (Boyd Roberts) writes:
  14.   |rfs@se28.wg2.waii.com (Robert Starr) writes:
  15.   |> But settable tabs, auto-indent, and brace matching are not
  16.   |> a lot to ask from a programmers editor.  Sam looks good, but I cannot
  17.   |> understand why these 3 simple features were left out (unless I missed
  18.   |> something in the supplied documentation).
  19.   |
  20.   |Sam does brace matching with a double click on button 1:
  21.   |
  22.   |     Button 1 changes selection.  Pointing to a non-current window with but-
  23.   |     ton 1 makes it current; within the current window, button 1 selects
  24.   |     text, thus setting dot.  Double-clicking selects text to the boundaries
  25.   |     of words, lines, quoted strings or bracketed strings, depending on the
  26.   |     text at the click.
  27.   |
  28.   |It lets your left hand do auto indent.  Just how hard is it to type tab?
  29.  
  30. Well, I suppose tab's not so bad if you mostly write/modify K&R style
  31. full-tab indent C. One hit for each line for level 1, two hits/line for 
  32. level 2, ...  By the time you get to 5 or so, your text is going to wrap 
  33. around so it's hard to read anyway, so you don't care about speed;-)
  34.  
  35. Seriously, part of the answer probably *is* that full tab indentation is 
  36. all Murray Hill (and lots of other people) want. But having worked on adding 
  37. a vi-like ai/sw to samterm, I suspect another part of the answer is that 
  38. adding features to samterm is not all that easy/clean to do. The relevant 
  39. piece of code for ai/sw is samterm/main.c:type(), an event-driven pinball 
  40. machine whose only only two comments are:
  41.  
  42.     /* what a bloody mess this is */
  43.  
  44. and a bit later
  45.  
  46.     /* ICK */
  47.  
  48. Encouraged by those comments to commit further atrocities, I persevered
  49. and got an ai/sw option working (to a first order) over the weekend.
  50.  
  51. What made it hard is one of the things that makes Sam interesting. Sam 
  52. (like 8 1/2) was designed to make a bitmap graphic interface responsive 
  53. not only at LAN speeds, but over low speed (as low as 9600) lines to your 
  54. bitmap display at *home*. The (largely undocumented) caches/Rasps/protocols
  55. between sam and samterm to make remote mouse driven editing work over 
  56. 9600 BPS lines do not yield source code that invites adding "features".
  57.  
  58. Other things (besides remote editing) that make Sam interesting (to me):
  59.  
  60.    o structural expression pipelines 
  61.    o undo to help you interactively develop them 
  62.    o multi-file editing
  63.    o the clean, small command set and simple graphical interface might 
  64.      make sam a good editor for new-to-unix people.
  65.  
  66. You don't bother with Sam if all you want is small-muscle ergonomics. 
  67. With only Sam's spartan and hard-to-modify (IMO) graphical interface 
  68. to commend it, I would have abandoned it rather than pursue a few comforts 
  69. for my vi-wired lower brain.
  70.  
  71. ----------------------------------
  72. Ed Kubaitis (ejk@ux2.cso.uiuc.edu)
  73. Computing & Communications Services Office - University of Illinois, Urbana
  74.