🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #203

Re: How *does* one write a good text editor?

#203
From: Jon. Hallett
Date: Fri, 28 Aug 1992 13:59
12 lines
1061 bytes
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.
Technical Details
Message-ID: <JJH91R.92Aug28145916@louis.ecs.soton.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!doc.ic.ac.uk!sot-ecs!jjh91r
References: <17993@acorn.co.uk> <25258@castle.ed.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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