>> I think of modeline as something buffer-specific, so I don't want to >> put global messages there. > > In that case you can try the other file I posted, with which messages > are displayed in a popup buffer. > Here it is again, with a few corrections. Again messages are displayed in a popup buffer only when the minibuffer is active.