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 Per Bothner 03 Jul 2014 06:39 UTC


On 07/02/2014 07:59 PM, John Cowan wrote:
> 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.

"sometimes copying is delayed until the next operation that changes the text"

IMO that is the only sane thing to do.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/

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