aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/man.el
diff options
context:
space:
mode:
authorGlenn Morris2008-10-16 07:18:04 +0000
committerGlenn Morris2008-10-16 07:18:04 +0000
commit3d56260a0bee73719dca5a39aa562cebadfa4331 (patch)
tree2a1a63bfff3f1384d895eaf4567d7eaba97c901e /lisp/man.el
parent2d7752a0d322db32eed4d67ca5cdf988b2427204 (diff)
downloademacs-3d56260a0bee73719dca5a39aa562cebadfa4331.tar.gz
emacs-3d56260a0bee73719dca5a39aa562cebadfa4331.zip
(Man-getpage-in-background): Force recent `man's to output
escape sequences even when stdout is not a tty. (Bug#1142)
Diffstat (limited to 'lisp/man.el')
-rw-r--r--lisp/man.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 353a9032992..5b77b0b12d6 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -829,6 +829,10 @@ all sections related to a subject, put something appropriate into the
829 (Man-width (frame-width)) 829 (Man-width (frame-width))
830 ((window-width)))))) 830 ((window-width))))))
831 (setenv "GROFF_NO_SGR" "1") 831 (setenv "GROFF_NO_SGR" "1")
832 ;; Since man-db 2.4.3-1, man writes plain text with no escape
833 ;; sequences when stdout is not a tty. In 2.5.0, the following
834 ;; env-var was added to allow control of this (see Debian Bug#340673).
835 (setenv "MAN_KEEP_FORMATTING" "1")
832 (if (fboundp 'start-process) 836 (if (fboundp 'start-process)
833 (set-process-sentinel 837 (set-process-sentinel
834 (start-process manual-program buffer 838 (start-process manual-program buffer