I have a package that creates overlays as annotations. Part of the functionality is to delete annotations too. It turns out neither of these seems to be undoable. I.e. if you add an overlay to text, you cannot type
C-/ to undo the addition, and if you accidentally delete an overlay you can not type
C-/ to get it back.
Is it possible to add things to the undo list that would make this possible?