>>>>> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:
Juergen> We have to release the paragraphs only at the end of the Juergen> function! I think we could save the Paragraph * in a vector Juergen> and then delete them at the end. That would be clean enough Juergen> IMO. >> Why do we have to do that? Juergen> To free the unused paragraphs? No, to do it at the end of the function. Are you just pretending you don't understand? >> So you are looking for tmppar3 inside the buffer, right? But how >> can it be there already, since you have not linked it in at this >> point? Juergen> No I'm looking for it's ID! Heed that undo-paragraphs have Juergen> the same ID as used paragraphs otherwise how would I find the Juergen> paragraph I have to substitute? So tmppar3 is not in the buffer, but there is a paragraph in there with the same ID? >> I know that. Actually I figured this out after looking at the code >> long enough. Juergen> Good so it seems to be good code! No. It could be useful to have some comments on how you use this ID. >> So we are looking for information in these freed paragraphs >> although we know they are not quite right? Juergen> No but we have to free the rows which where used by the Juergen> substitued paragraphs and we probably access next/previous Juergen> pointers. This was not the problem here (more accessing buffer->paragraph() when it points to a deleted paragraph). I'll take a look at your new code. JMarc