From owner-freebsd-bugs Fri Feb 5 13:36:02 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA06178 for freebsd-bugs-outgoing; Fri, 5 Feb 1999 13:36:02 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA06170 for ; Fri, 5 Feb 1999 13:36:01 -0800 (PST) (envelope-from fenner@parc.xerox.com) Received: from mango.parc.xerox.com ([13.1.102.232]) by alpha.xerox.com with SMTP id <56047(2)>; Fri, 5 Feb 1999 10:48:10 PST Received: from mango.parc.xerox.com (localhost.parc.xerox.com [127.0.0.1]) by mango.parc.xerox.com (8.8.8/8.8.8) with ESMTP id KAA10802; Fri, 5 Feb 1999 10:48:07 -0800 (PST) (envelope-from fenner@mango.parc.xerox.com) Message-Id: <199902051848.KAA10802@mango.parc.xerox.com> To: Wolfram Schneider cc: bugs@FreeBSD.ORG Subject: Re: [yokota@zodiac.mech.utsunomiya-u.ac.jp: .Fx and .Os macros in groff, FreeBSD] In-reply-to: Your message of "Fri, 05 Feb 1999 07:33:48 PST." <19990205163348.A11039@caramba.cs.tu-berlin.de> Date: Fri, 5 Feb 1999 10:48:06 PST From: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Is it too stupid to wonder why these macros aren't simply, say, .de Fx .nr cF \\n(.f .nr cZ \\n(.s .ds aa \&\f\\n(cF\s\\n(cZ .if \\n(.$==2 \{\ \&\\*(tNFreeBSD\\*(aa \\$1\\*(aa\\$2 .\} .if \\n(.$==1 \{\ \&\\*(tNFreeBSD\\*(aa \\$1\\*(aa .\} .. ? I mean, I suppose it's meant to ensure that people only use released version numbers in .Fx macros, but the current implementation certainly has about the worst failure mode, especially since nobody remembers to update it... Plus, the extra \\*(aa is just clutter; the font and size have already been reset by the first \\*(aa. Also, positional parameters are replaced with empty strings if they don't exist (at least in our groff), so the macro could be further reduced to: .de Fx .nr cF \\n(.f .nr cZ \\n(.s .ds aa \&\f\\n(cF\s\\n(cZ \&\\*(tNFreeBSD\\*(aa \\$1\\$2 .. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message