On Mon, Aug 12, 2002 at 03:39:46PM +0300, Dekel Tsur wrote:
 
> On Sun, Aug 11, 2002 at 09:25:44PM +0300, Martin Vermeer wrote:
> > ...because if you do, you will discover the main reason why the counter
> > array has been attached to paragraph and not to buffer: 
> > 
> >     if you change something in the middle of your buffer that affects
> >     counters, you only recompute the counters below it.
> > 
> > This appears to be done in the routine updateCounters in text2.C.
> 
> What is wrong with the above ? (namely, why the patch is needed?)
 
Only that it assumes that the counters for the paragraphs *up to that 
point* are in order. If you use per-buffer counters, you will find that 
this doesn't work anymore. The routine just continues counting on from 
the last figure in the buffer...  not good. That's why you have to
reset the counters and re-run the count over the *whole* buffer from the
start.

See my upcoming patch :-)

Martin

Attachment: msg42469/pgp00000.pgp
Description: PGP signature

Reply via email to