> Thanks, Lars. I tried this approach and it's almost perfect. The only thing
> I noticed is that when I use M-x or C-s, and the focus is on the echo area,
> the last active buffer (the one I was before pressing M-x or C-s) doesn't
> use the `mode-line-buffer-id-active` face.
Instead of
>> (if (eq (selected-window)
>> (old-selected-window))
try
(if (memq (selected-window) `(,(old-selected-window) ,(minibuffer-selected-window)))
martin