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)
shackle
. It has options to manage what happens when a popup window is opened. – Chakravarthy Raghunandan Nov 19 '16 at 12:55help-window-full-frame
from the accepted answer and use it as-is. The key ingredients aredelete-other-windows
(at the appropriate location in the process) and bindinghelp-window-select
tot
. – lawlist Nov 19 '16 at 14:58help-window-full-frame
"as-is" without any modifications whatsoever:(help-window-full-frame "*Debug*" (dolist (item load-path) (print item)))
And if you want, just press "q" to go back to the prior window configuration. – lawlist Nov 19 '16 at 15:12