aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-13 04:34:58 +0000
committerRichard M. Stallman1993-06-13 04:34:58 +0000
commit82c9fe8e256c68971ac60ebde5bca11111130ea5 (patch)
treebdbb4dd44ef5d3f572cfbacd27ab25528ae3a7fc
parent3f26b32a5f27c5036940e7f0b2d0536dcc9f4567 (diff)
downloademacs-82c9fe8e256c68971ac60ebde5bca11111130ea5.tar.gz
emacs-82c9fe8e256c68971ac60ebde5bca11111130ea5.zip
(Man-getpage-in-background): Use TERM=dumb to prevent
terminal control sequences in the output.
-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