And why don’t check the old selected buffer in minibuffer-message?
在 2019年11月11日 +0800 AM5:23,Juri Linkov <juri@linkov.net>,写道:
tags 34614 + fixed
close 34614 27.0.50
thanks

Thanks. I think it will be better if emacs can record the last
buffer(Including minibuffer) selected manually by the user and provide
a function like selected-buffer to return this buffer.
And minibuffer-message can use this.

old-selected-window does exactly the same - it records the last window,
and getting its buffer is easy with just window-buffer.

Since now everything is fixed, I'm closing this bug report.
Thanks for reporting it.