home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / acorn / tech / 80 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.0 KB

  1. Path: sparky!uunet!mcsun!uknet!doc.ic.ac.uk!sot-ecs!jjh91r
  2. From: jjh91r@ecs.soton.ac.uk (Jon. Hallett)
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: Re: How *does* one write a good text editor?
  5. Message-ID: <JJH91R.92Aug28145916@louis.ecs.soton.ac.uk>
  6. Date: 28 Aug 92 13:59:16 GMT
  7. References: <17993@acorn.co.uk> <25258@castle.ed.ac.uk>
  8. Sender: news@ecs.soton.ac.uk
  9. Organization: Southampton University Computer Science
  10. Lines: 12
  11. Nntp-Posting-Host: louis
  12. In-reply-to: jamesh@castle.ed.ac.uk's message of 27 Aug 92 15:34:01 GMT
  13.  
  14. In article <25258@castle.ed.ac.uk> jamesh@castle.ed.ac.uk (James Hammerton) writes:
  15.  
  16. [...]
  17. >What you do is you have the text split in two(this is where the cursor
  18. >currently is) with one block of text at one end of the array and the
  19. >other at the opposite end of the array:
  20. [...]
  21.  
  22. Yep, this is the scheme that emacs uses (and TECO before it if the
  23. comments in the emacs source are to be believed).  See the files
  24. emacs-18.58/src/insdel.c and emacs-18.58/src/buffer.h in the emacs
  25. distribution for the code itself.
  26.