Francis Moreau [off-list ref] writes:
Do you have any tricks for this case ?
I use PAGER=cat only inside Emacs, so I don't see how "log" can be a
problem. Perhaps that is because I don't use "M-x shell" (I used to but
not anymore). Of course you have to limit the extent of "log" in "M-x
compile" mode, but that goes without saying.
I may have used some hooks when entering shell mode to tweak the
environment further only under "M-x shell".