I have some insert functions that take some time (e.g., doing network IO). I like to store the current point position, and then insert the text at the stored point.
This should be robust to some small edits. I think bookmarks.el
already has such a 'fuzzy' point storing machinery, but I am not sure if it's the best way to do this (or how to use bookmarks.el
's presumably private API).
C-h ig(elisp)Markers
.