[emacs mode] Prevent actions in temporary buffers from interfering with mark

- there are more temporary buffers with insert actions happening
- this catches all the cases in post-command-hook

Also note that this bug disabled all active marks with transient-mark-mode, not just shift selection.