From phantom@scorpion.crimea.ua Sat Aug 21 00:01:56 1999
Return-Path: <phantom@scorpion.crimea.ua>
Received: from sonet.crimea.ua (OTC-sl3-FLY.CRIS.NET [212.110.136.71])
	by hub.freebsd.org (Postfix) with ESMTP id 7CE6A153A4
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Aug 1999 00:00:35 -0700 (PDT)
	(envelope-from phantom@scorpion.crimea.ua)
Received: (from uucp@localhost)
	by sonet.crimea.ua (8.8.8/8.8.8) with UUCP id KAA19033
	for FreeBSD-gnats-submit@freebsd.org; Sat, 21 Aug 1999 10:00:57 +0400 (MSD)
	(envelope-from phantom@scorpion.crimea.ua)
Received: (from phantom@localhost)
	by scorpion.crimea.ua (8.8.8/8.8.5+ssl+keepalive) id JAA08266;
	Sat, 21 Aug 1999 09:52:59 +0400 (MSD)
Message-Id: <199908210552.JAA08266@scorpion.crimea.ua>
Date: Sat, 21 Aug 1999 09:52:59 +0400 (MSD)
From: "Alexey M. Zelkin" <phantom@cris.net>
Sender: phantom@scorpion.crimea.ua
Reply-To: "Alexey M. Zelkin" <phantom@cris.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] Allow .Rv for section 7
X-Send-Pr-Version: 3.2

>Number:         13284
>Category:       docs
>Synopsis:       Allow .Rv macro for man section 7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 00:10:01 PDT 1999
>Closed-Date:    Wed Sep 22 15:39:05 PDT 1999
>Last-Modified:  Wed Sep 22 15:40:09 PDT 1999
>Originator:     Alexey Zelkin
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Home
>Environment:

-CURRENT, last cvsuped few days ago

>Description:

By default .Rv (Return Value) macro is allowed for 2 and 3 sections only.
It's right. But mdoc.samples.7 is also using that function to show result
of the .Rv macro (see mdoc.samples(7)). We have to possibilities to fix
error message when viewing mdoc.samples(7):
1. Just hardcode its message, it's ugly.
2. Enable .Rv for 7 section, but don't include this change information
to docs and its usage (enable hiddenly).

>How-To-Repeat:
>Fix:

Index: tmac.doc
===================================================================
RCS file: /usr/local/CVSROOT/src/contrib/groff/tmac/tmac.doc,v
retrieving revision 1.2
diff -r1.2 tmac.doc
3420c3420,3422
< .	if (\\n(cH<2):(\\n(cH>3) .tm Usage: .Rv -std sections 2 and 3 only
---
> .\" This macro also allowed for 7 section because mdoc.samples.7 will show
> .\" actual information (not hardcoded)
> .	if (\\n(cH=2):(\\n(cH=3):(\\n(cH=7)) .tm Usage: .Rv -std sections 2 and 3 only

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phantom 
State-Changed-When: Wed Sep 22 15:39:05 PDT 1999 
State-Changed-Why:  
Sligtly modified pattch applied. Thanks! 
>Unformatted:
