Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!bcm!dimacs.rutgers.edu!rutgers!cmcl2!sbcs!libserv1.ic.sunysb.edu!jallen From: jallen@libserv1.ic.sunysb.edu (Joseph Allen) Newsgroups: comp.editors Subject: Append vs. Insert Message-ID: <1991Apr6.064553.26182@sbcs.sunysb.edu> Date: 6 Apr 91 06:45:53 GMT Sender: usenet@sbcs.sunysb.edu (Usenet poster) Organization: State University of New York at Stony Brook Lines: 33 Originator: jallen@libserv1.ic.sunysb.edu Which is better append or insert? :-) Actually, does anyone know the history of ed... why is it so oriented towards appending? The two styles are very different: Append: Can't put cursor past end of line or end of file Must have zero-eth line so we can insert at beginning of file Insert: The possibly imaginary places of end of line and end of file exist Back when I was a teenager I used an editor called 'E' for a Motorola Exorciser 6800 developement system which was an insert oriented line editor. When I began using UNIX I was very disgusted with ed/ex/vi because they're append oriented. So which came first? Insert or append? And why does ed use append when everyone else uses insert? (Oh and does anyone know why they made ed so that the it leaves you at the the end of the previous range instead of requiring you to explicitly reposition yourself?) (if anyone is interested in an insert (and maintain current position whenever possible) version of ed let me know. I was bored one day you see and...) -- #define h 23 /* Height */ /* jallen@ic.sunysb.edu (129.49.12.74) */ #define w 79 /* Width */ /* Amazing */ int i,r,b[]={-w,w,1,-1},d,a[w*h];m(p){a[p]=2;while(d=(p>2*w?!a[p-w-w]?1:0:0)|( p