switch-to-normal-mode now works with read-only buffers