# HG changeset patch # User Glenn Morris # Date 1224141468 0 # Node ID 7b3f1867718143af35ef8301f52d4bb376c64db0 # Parent 9f8c6cd4b37c6b7995ed3068ff4b2a32cd03c2f7 (Man-getpage-in-background): Force recent `man's to output escape sequences even when stdout is not a tty. (Bug#1142) diff -r 9f8c6cd4b37c -r 7b3f18677181 lisp/man.el --- a/lisp/man.el Thu Oct 16 04:09:13 2008 +0000 +++ b/lisp/man.el Thu Oct 16 07:17:48 2008 +0000 @@ -829,6 +829,10 @@ (Man-width (frame-width)) ((window-width)))))) (setenv "GROFF_NO_SGR" "1") + ;; Since man-db 2.4.3-1, man writes plain text with no escape + ;; sequences when stdout is not a tty. In 2.5.0, the following + ;; env-var was added to allow control of this (see Debian Bug#340673). + (setenv "MAN_KEEP_FORMATTING" "1") (if (fboundp 'start-process) (set-process-sentinel (start-process manual-program buffer