bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu: Help -> Manuals -> Read Man Page... problem


From: Reiner Steib
Subject: Re: Menu: Help -> Manuals -> Read Man Page... problem
Date: Thu, 18 Mar 2004 16:37:02 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

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 <bwarsaw@cen.com>
 ;; 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  <Reiner.Steib@gmx.de>

        * 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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]