mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -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:
parent
9748c13208
commit
ae56edbbf8
1 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue