unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Menu: Help -> Manuals -> Read Man Page... problem
Date: Thu, 18 Mar 2004 16:37:02 +0100	[thread overview]
Message-ID: <v9wu5i5fq9.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0403180936040.3919@pcl321.mppmu.mpg.de> (Peter Breitenlohner's message of "Thu, 18 Mar 2004 09:52:31 +0100 (CET)")

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	other threads:[~2004-03-18 15:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-17  9:56 Menu: Help -> Manuals -> Read Man Page... problem Peter Breitenlohner
2004-03-17 19:01 ` Eli Zaretskii
2004-03-18  8:52   ` Peter Breitenlohner
2004-03-18 15:37     ` Reiner Steib [this message]
2004-03-18 16:04       ` Peter Breitenlohner
2004-03-18 16:26     ` Eli Zaretskii
2004-03-19 18:47       ` GROFF_NO_SGR when calling groff (was: Menu: Help -> Manuals -> Read Man Page... problem) Reiner Steib
2004-03-19 20:02         ` GROFF_NO_SGR when calling groff Werner LEMBERG
2004-03-24 11:15     ` Menu: Help -> Manuals -> Read Man Page... problem Peter Breitenlohner
2004-03-25  7:06       ` Werner LEMBERG

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9wu5i5fq9.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=reiner.steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).