]> git.eshelyaron.com Git - emacs.git/commit
Stop subprocesses from using inherited or default PAGER
authorSpencer Baugh <sbaugh@janestreet.com>
Tue, 6 Aug 2024 16:39:37 +0000 (12:39 -0400)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 Aug 2024 14:09:50 +0000 (16:09 +0200)
commit4b16fd70de9831fb90fac793e715dbb18111f891
tree5bdfa8e1f24f4a2baaca5e93721dccf477a4c7b9
parent327719916dc7b25e888ab0998748351ceb0a5deb
Stop subprocesses from using inherited or default PAGER

At startup, set PAGER to "cat" so that any inherited or
default value of PAGER does not affect subprocesses of
Emacs.  Pagers generally won't work when a subprocess
runs under Emacs.
Users can use 'comint-pager' (or other customizations)
to tell subprocesses to use a different specific pager.
* lisp/startup.el (normal-top-level): Set PAGER to 'cat',
if 'cat' is available.  (Bug#72426)

(cherry picked from commit 7811a7d38bb7cb303dc66efa02eb95e75a03f39d)
lisp/startup.el