Re: Should "git help" respect the 'pager' setting?
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- May 30, 2013, 17:05 UTC
- Message-ID
- <vpqhahko0ub.fsf@anie.imag.fr>
- In-Reply-To
- <CALkWK0=RUy6=4k9uGpy2efdL8DhOnNO52rHZWSmHP3C=2a4SUw@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> It just needs to set $PAGER or $MANPAGER before the exec(), no?
Yes, that should do the same as "man -P".
> I would argue that it should do this. $GIT_PAGER works everywhere > else, but obviously man has no knowledge about it.
I find it a bit weird that Git sets the configuration for external commands, but it may make sense. No strong opinion here.
Show 6 quoted lines
>> If you're an Emacs user, you can read about man.viewer and set it to >> woman, or set PAGER=cat when inside Emacs. > > I just learnt about man.viewer. There's a small problem with it > though: why is there no option for Emacs man corresponding to Emacs > woman?
I guess because no one implemented it ;-).
>> I personally run M-x git-foo RET, and never run "git help". > > M-x man git-foo RET, you mean?
Yes, sorry.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/