Add shm-expand-pattern
Add message-mode to exempt major modes
Add insert-putstrln and move case-split elsewhere