Mercurial > emacs
changeset 3713:c77a3da2d08d
(Man-getpage-in-background): Use TERM=dumb to prevent
terminal control sequences in the output.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 13 Jun 1993 04:34:58 +0000 |
parents | 9e0f49a8f967 |
children | a1edd269b2f4 |
files | lisp/man.el |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/man.el Sun Jun 13 04:18:43 1993 +0000 +++ b/lisp/man.el Sun Jun 13 04:34:58 1993 +0000 @@ -445,9 +445,12 @@ (Man-notify-when-ready buffer) (message "Invoking man %s in background..." man-args) (setq buffer (generate-new-buffer bufname)) - (set-process-sentinel - (start-process "man" buffer "sh" "-c" - (format (Man-build-man-command) man-args)) + (let ((process-environment process-environment)) + ;; Prevent any attempt to use display terminal fanciness. + (setenv "TERM" "dumb") + (set-process-sentinel + (start-process "man" buffer "sh" "-c" + (format (Man-build-man-command) man-args))) 'Man-bgproc-sentinel)) ))