|Make an editor for a language email@example.com (Davide Marino) (1999-02-27)|
|Re: Make an editor for a language firstname.lastname@example.org (1999-02-28)|
|Re: Make an editor for a language email@example.com (1999-03-02)|
|Re: Make an editor for a language maratb@CS.Berkeley.EDU (Marat Boshernitsan) (1999-03-02)|
|Re: Make an editor for a language firstname.lastname@example.org (Kenn Heinrich) (1999-03-02)|
|Re: Make an editor for a language email@example.com (George Russell) (1999-03-04)|
|Re: Make an editor for a language firstname.lastname@example.org (1999-03-04)|
|From:||email@example.com (Michael S. Zraly)|
|Date:||4 Mar 1999 12:13:29 -0500|
|Organization:||The World Public Access UNIX, Brookline, MA|
>> [In an editor] mantain in memory all the text in this form:
>> - there is a double linked list with one element for each line of text
>> with a link to the line after and before.
>I tried that and failed. A much better representation in my
>experience is the plain character array with a hole at the cursor.
>AFAIK emacs uses this data structure; I have also seen it described in
>several places, but don't remember where.
This is called a gap buffer. You can ask about it on comp.editors, or
pick up a copy of Craig Finseth's "The Craft of Text Editing: Emacs for
the Modern World". It's available at Amazon for $65.95.
Return to the
Search the comp.compilers archives again.