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