When I'm editing a comment, if the comment gets deleted in the meantime, I'm not notified in any way. This poses a problem because if I try to submit my edit, my edited comment is irretrievably deleted, and I have to totally recompose my comment. This gets quite irritating.
Here on Meta, when voting to close a question as a duplicate of a question that isn't exactly the same in the limited cases where it's acceptable (e.g. as a duplicate of an FAQ post with a section that answers the question), I often edit the automatic comment to clarify where exactly in the target question the duplicate is answered, or why I'm voting to close as a duplicate. I prefer editing these comments rather than posting a new one because during the time it's not yet closed, there are a total of two comments explaining the duplicate rather than just one, I prefer to have the link title be the question title rather than just the URL, and in some cases it's not a "duplicate" per se. (Before you comment saying that the comment will get deleted, that's in fact not the case if I edit; older posts stating that all comments with a link to the target get deleted are outdated.) However, if the comment has been automatically deleted in the meantime because (most likely) a user with gold badges used their hammer, the edit I made gets irretrievably deleted when I submit it.
Therefore, I propose that if I'm editing a comment, and it's deleted while I'm making my edit, show me a prompt indicating that the comment has been deleted, so that I can copy and paste the contents of the comment into a new comment.
I considered the following other ways of fixing this irritation:
Submit a new comment if I attempt to edit a since-deleted comment. (I'd prefer it if the user had to manually intervene to post a new comment.)
Prevent submitting edits to deleted comments. (It might be that edits to deleted comments actually get saved and shown to moderators, and I don't want to interfere with that.)
(Side question: if I submit an edit to a deleted comment, will the edit actually make it through? In other words, will it be visible to moderators, who can see deleted comments?)