John Levon wrote: > On Thu, Oct 30, 2003 at 01:08:25PM +0100, Alfredo Braunstein wrote: > >> In which situations you think we need it to remain valid? > > I don't understand. Clearly, search and replace, spellcheck, merge > changes all need a static iterator position whilst things change around > them ...
Is not "around", you know exactly *where*, don't you?. I.e for instance, if you replace the selection (a pair of "PosIterators" or Cursors), the first one remains valid and that's all we need. (that includes S&R and spellcheck) In general: put an iterator in the first position of your mangling, and that will remain valid... [Btw, this is AndrÃ's argument IIUC] Alfredo
