From: Junio C Hamano Date: Mon, 22 Dec 2008 08:30:44 GMT Subject: Re: git-diff should not fire up $PAGER, period! Message-ID: <7vfxkgk3wr.fsf@gitster.siamese.dyndns.org> In-Reply-To: <494F47E1.8070105@viscovery.net> Johannes Sixt writes: > Miles Bader schrieb: >> Just (setenv "PAGER" "cat") in .emacs. >> >> [I actually have it set to /bin/cat, not sure if that's meaningful or not.] > > No, really, you should set it to plain "cat": As a special case git > recognizes this token and does not run any pager. If you set it to > "/bin/cat" it does run a pager, namely /bin/cat. But that would not hurt ;-). On the other hand, using PAGER=cat or PAGER=/bin/cat is the right thing to do in compilation and shell modes in Emacs, regardless of your use of git.