在 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.

Doesn’t set-buffer and with-current-buffer change the current buffer in the window? They are not selected manually by user.