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

Re: [Scheme-reports] mutable unicode strings

Per Bothner scripsit:

> I don't believe Emacs does this.  IIRC the gap is only moved when text is
> inserted/deleted, not when point is moved.

I haven't looked at the Emacs code, but that is not what
<https://en.wikipedia.org/wiki/Gap_buffer> says, at any rate.  You
move the gap when you move point; you *don't* move the gap when you
insert/delete at point.

> Why would you want to treat point different from any other (advancing)
> markers?  

Point is precisely the marker at which the gap is guaranteed to already be.
It's reasonable to allow the general marker API to accept it, however.

John Cowan          http://www.ccil.org/~cowan        cowan@x
        Is it not written, "That which is written, is written"?

Scheme-reports mailing list