From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.bugs Subject: Re: Menu: Help -> Manuals -> Read Man Page... problem Date: Thu, 18 Mar 2004 16:37:02 +0100 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <200403170956.i2H9uaPf029906@pcl321.mppmu.mpg.de> <7704-Wed17Mar2004210116+0200-eliz@elta.co.il> Reply-To: Reiner Steib NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079625120 3507 80.91.224.253 (18 Mar 2004 15:52:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2004 15:52:00 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 18 16:51:42 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B3zo5-000784-00 for ; Thu, 18 Mar 2004 16:51:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B3zid-00079A-6p for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Mar 2004 10:46:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B3zia-00078M-Gj for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2004 10:46:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B3zi4-00070v-KA for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2004 10:45:59 -0500 Original-Received: from [134.60.10.173] (helo=lumberjack.physik.uni-ulm.de) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B3za1-0004Xd-Fd for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2004 10:37:09 -0500 Original-Received: by lumberjack.physik.uni-ulm.de (Postfix, from userid 170) id 583CE1814F; Thu, 18 Mar 2004 16:37:02 +0100 (CET) Original-To: Peter Breitenlohner X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf, d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody In-Reply-To: (Peter Breitenlohner's message of "Thu, 18 Mar 2004 09:52:31 +0100 (CET)") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7311 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7311 On Thu, Mar 18 2004, Peter Breitenlohner wrote: > On Wed, 17 Mar 2004, Eli Zaretskii wrote: [...] >> Current Emacs development sources already set GROFF_NO_SGR=1 when they >> run `man'. [...] > Is this built into the emacs binary or just in the one place I found: > line 61 of emacs-21.3/lisp/gnus/gnus-uu.el? I think the correct place is `lisp/man.el'. You can apply the following patch. If it works (I cannot check myself), can someone apply this patch to the EMACS_21_1_RC branch, please? --8<---------------cut here---------------start------------->8--- --- man.el.~1.108.4.2.~ Wed Oct 16 01:03:28 2002 +++ man.el Thu Mar 18 16:20:26 2004 @@ -1,6 +1,6 @@ ;;; man.el --- browse UNIX manual pages -;; Copyright (C) 1993, 1994, 1996, 1997, 2001 Free Software Foundation, Inc. +;; Copyright (C) 1993, 1994, 1996, 1997, 2001, 2004 Free Software Foundation, Inc. ;; Author: Barry A. Warsaw ;; Maintainer: FSF @@ -81,7 +81,7 @@ ;; footer). A different algorithm should be used. It is easy to ;; compute how many blank lines there are before and after the page ;; headers, and after the page footer. But it is possible to compute -;; the number of blank lines before the page footer by euristhics +;; the number of blank lines before the page footer by heuristics ;; only. Is it worth doing? ;; - Allow a user option to mean that all the manpages should go in ;; the same buffer, where they can be browsed with M-n and M-p. @@ -613,6 +613,7 @@ ;; the page will actually be displayed, but it seems ;; reasonable. (setenv "COLUMNS" (number-to-string (frame-width))))) + (setenv "GROFF_NO_SGR" "1") (if (fboundp 'start-process) (set-process-sentinel (start-process manual-program buffer "sh" "-c" --8<---------------cut here---------------end--------------->8--- For the ChangeLog: --8<---------------cut here---------------start------------->8--- 2004-03-18 Reiner Steib * man.el (Man-getpage-in-background): Set GROFF_NO_SGR. --8<---------------cut here---------------end--------------->8--- > And would it suffice to modify that file > '"groff -mandoc -Tascii %s' => '"GROFF_NO_SGR=1 groff -mandoc -Tascii %s' > (and of course recompile gnus-uu.elc)? This is only for viewing uuencoded attached man page sources in Gnus, AFAICS. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/