hi all,
this is not the purpose of the mailing list, i know, but i'd like to
know more about the way xemacs stores the buffer's content.
i heard that it was keeping a kind of gap buffer, which is like an array
with a gap where the editing of text is taking place.
so everytime edition takes place, the gap moves to where it occurs and
becomes smaller as the text is inserted. this saves a lot of memory
allocating and moving as well.
now assuming all this is true and i'm not going the wrong route, i know
there are position objects, marks, markers or such, that represent an
offset in the storage object (gap buffer), and these positions get
updated when the gap shifts or resizes, or when the gap buffer is
resized itself. that'd be my guess that all these markers are kept at
some place within the gap buffer so that it knows when to update them,
and how.
the reason i'm asking all this is that i'm currently writing an app that
uses this kind of storage (in java ... don't laugh...) and i'm having
some problems with the way these marks are updated.
is there any place in the xemacs documentation where i can find more
info on this, or a book about that kind of things or even one of you who
knows the subject well enough and would be kind enough to answer some
questions ? i'm not going to put my questions here, unless someone would
answer them or finds the topic interresting.
sorry if i'm polluting this mailinglist :)
just don't answer if this is not interresting.
thanx.
--
# Stef Epardaud, # There is no limit to the power of computing ...
# Java Defeater # ... except men maybe ?
# Earth # Lunatech Research,
# Solar System # soon we will quit researching and start finding...