Stefan Monnier writes: >> Also I would move point by offset rather than percent to save exactly >> the same position. > > Feel free to do that, yes (of course taking care of the case where the > new text is shorter than the original position). Done. Please see attached patch. Thanks!