1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Revert "Stop subprocesses from using inherited or default PAGER"

This reverts commit 7811a7d38b.
Users set PAGER and don't expect Emacs to override that.  See
https://lists.gnu.org/archive/html/emacs-devel/2025-07/msg00309.html.
This commit is contained in:
Eli Zaretskii 2025-08-09 15:42:26 +03:00
parent 9748c13208
commit ae56edbbf8

View file

@ -853,12 +853,6 @@ It is the default value of the variable `top-level'."
;; We are careful to do it late (after term-setup-hook), although the
;; new multi-tty code does not use $TERM any more there anyway.
(setenv "TERM" "dumb")
;; Similarly, a subprocess should not try to invoke a pager, as most
;; pagers will fail in a dumb terminal. Many programs default to
;; using "less" when PAGER is unset, so set PAGER to "cat"; using cat
;; as a pager is equivalent to not using a pager at all.
(when (executable-find "cat")
(setenv "PAGER" "cat"))
;; Remove DISPLAY from the process-environment as well. This allows
;; `callproc.c' to give it a useful adaptive default which is either
;; the value of the `display' frame-parameter or the DISPLAY value