emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request for pointers and advice: displaying several buffers inside a


From: Eli Zaretskii
Subject: Re: Request for pointers and advice: displaying several buffers inside a single window
Date: Sat, 11 Apr 2020 12:25:24 +0300

> From: Ihor Radchenko <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden,
>  address@hidden
> Date: Sat, 11 Apr 2020 16:35:58 +0800
> 
> > That's not the definition I'd use.  The gap is a way of making text
> > insertion less expensive.  If you insert characters one by one, each
> > insertion needs to move the characters after the insertion point,
> > which is expensive.  Having the gap allows us to perform this movement
> > only after relatively large amounts of text were inserted; for smaller
> > insertions we just make the gap smaller.
> 
> Do you mean that the gap is specially allocated memory space associated
> with buffer point where you can insert characters without a need to
> shift the tail of the char array containing buffer string?

Yes.  Except that point doesn't need to be at that place, because we
can insert at position that is not necessarily that of point; we move
the gap to the insertion place when we need.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]