Re: [Scheme-reports] mutable unicode strings John Cowan (02 Jul 2014 23:42 UTC)
Re: [Scheme-reports] mutable unicode strings Per Bothner (02 Jul 2014 23:52 UTC)
Re: [Scheme-reports] mutable unicode strings John Cowan (03 Jul 2014 03:03 UTC)
Re: [Scheme-reports] mutable unicode strings Per Bothner (03 Jul 2014 06:44 UTC)

Re: [Scheme-reports] mutable unicode strings John Cowan 03 Jul 2014 02:59 UTC

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@ccil.org
        Is it not written, "That which is written, is written"?

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports