diff lisp/man.el @ 6353:f00fc681daa4

(Man-build-man-command): Redirect desc 2 to /dev/null. (Man-getpage-in-background): Require env before printing message.
author Richard M. Stallman <rms@gnu.org>
date Mon, 14 Mar 1994 22:37:58 +0000
parents a52a879c385c
children 250e69a75938
line wrap: on
line diff
--- a/lisp/man.el	Mon Mar 14 22:30:12 1994 +0000
+++ b/lisp/man.el	Mon Mar 14 22:37:58 1994 +0000
@@ -271,7 +271,7 @@
 
 (defun Man-build-man-command ()
   "Builds the entire background manpage and cleaning command."
-  (let ((command (concat "man " Man-switches " %s 2>&1"))
+  (let ((command (concat "man " Man-switches " %s 2>/dev/null"))
 	(flist Man-filter-list))
     (while flist
       (let ((pcom (car (car flist)))
@@ -451,6 +451,7 @@
 	     (not override-reuse-p)
 	     buffer)
 	(Man-notify-when-ready buffer)
+      (require 'env)
       (message "Invoking man %s in background..." man-args)
       (setq buffer (generate-new-buffer bufname))
       (let ((process-environment (copy-sequence process-environment)))