Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to replace the displayfn from message to a function which displays the result in a temporary window? (I have limited knowledge of elisp.)
create a new buffer, switch to it and insert the message there:
(progn (switch-to-buffer (generate-new-buffer "message"))
Required, but never shown