How can I open a debug window and select it and make it fill the whole frame?
I tried:
(let ((help-window-select t))
(with-help-window "*Debug*"
(dolist (item load-path)
(print item)))
(delete-other-windows))
but this does not work; it seems to delete the help window itself and not the other windows.
Note:
Simply using
(with-help-window "*Debug*"
(dolist (item load-path)
(print item)))
will split the frame into two windows, with the "*Debug*"
buffer shown in the lower window. In addition the "*Debug*"
window is not selected.
Edit:
I also tried:
(let ((buf (switch-to-buffer "*Debug*")))
(dolist (item load-path)
(print item buf))
(help-mode))
this creates the "*Debug*"
buffer, but it does not select it (it stays hidden)