IDEA-111272 "Save to kill ring" keyboard action requires a file modification

Perform actual document modification inside write action
IDEA-111275 emacs kill appends when it shouldn't