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 co...@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