On next-error
in the grep or compilation window, I can use something like
(setq next-error-recenter 35)
to ensure that window displaying the match scrolls to show the whole match, as described in more detail in this stackoverflow question.
How do I do the same thing in the grep or compilation window itself? I often have grep output or compile output that is off the bottom of the window, and on days when I spend all of my time going through grep output or compile errors, switching back and forth between windows adds a significant overhead.