aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/man.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 2b0f26e8bfe..48c61af24e9 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -445,9 +445,12 @@ Man-reuse-okay-p is non-nil."
445 (Man-notify-when-ready buffer) 445 (Man-notify-when-ready buffer)
446 (message "Invoking man %s in background..." man-args) 446 (message "Invoking man %s in background..." man-args)
447 (setq buffer (generate-new-buffer bufname)) 447 (setq buffer (generate-new-buffer bufname))
448 (set-process-sentinel 448 (let ((process-environment process-environment))
449 (start-process "man" buffer "sh" "-c" 449 ;; Prevent any attempt to use display terminal fanciness.
450 (format (Man-build-man-command) man-args)) 450 (setenv "TERM" "dumb")
451 (set-process-sentinel
452 (start-process "man" buffer "sh" "-c"
453 (format (Man-build-man-command) man-args)))
451 'Man-bgproc-sentinel)) 454 'Man-bgproc-sentinel))
452 )) 455 ))
453 456