This function makes a temporary buffer, inserting text stored in msg
. Hitting q
will quit the temporary buffer.
My problem is that The cursor does not move to the temporary buffer as is done with *Backtrace*
.
(defun help-show (bfname msg)
"Display the output of MSG"
(when (stringp msg)
(with-output-to-temp-buffer bfname
(pop-to-buffer bfname)
(print msg))))
display-buffer-alist
config. RunningM-:
(help-show "*gahh*" "test")
pops the temporary buffer and locates active point into it. Run Emacs with `emacs -Q" and try yourself.