1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

(Man-getpage-in-background): Use TERM=dumb to prevent

terminal control sequences in the output.
This commit is contained in:
Richard M. Stallman 1993-06-13 04:34:58 +00:00
parent 3f26b32a5f
commit 82c9fe8e25

View File

@ -445,9 +445,12 @@ Man-reuse-okay-p is non-nil."
(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))
))