make mode-line work right in messages and scratch buffers