bug-groff
[Top][All Lists]
Advanced

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

[bug #59348] [ms] R macro doesn't work as documented


From: G. Branden Robinson
Subject: [bug #59348] [ms] R macro doesn't work as documented
Date: Mon, 26 Oct 2020 03:38:12 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?59348>

                 Summary: [ms] R macro doesn't work as documented
                 Project: GNU troff
            Submitted by: gbranden
            Submitted on: Mon 26 Oct 2020 07:38:10 AM UTC
                Category: Macro - ms
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

It's _so_ degraded in function it isn't even AT&T-compatible.

.R is documented to work like .B, .I, and .BI.

Instead it ignores its arguments and just changes the font.

Proposed fix attached.

Apparently broken since birth.


^351da0dc macros/tmac.s (James Clark          1991-06-02 04:20:34 -0500 1469)
.de R
^351da0dc macros/tmac.s (James Clark          1991-06-02 04:20:34 -0500 1470)
.ft R
^351da0dc macros/tmac.s (James Clark          1991-06-02 04:20:34 -0500 1471)
..
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1472)
.\" par*define-font-macro macro font
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1473)
.de par*define-font-macro
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1474)
.de \\$1
225451ca9 tmac/s.tmac   (Werner LEMBERG       2007-03-15 20:41:49 +0000 1475)
.ie \En[.$] \{\
225451ca9 tmac/s.tmac   (Werner LEMBERG       2007-03-15 20:41:49 +0000 1476)
. nr par*prev-font \En[.f]
225451ca9 tmac/s.tmac   (Werner LEMBERG       2007-03-15 20:41:49 +0000 1477)
\&\E$3\f[\\$2]\E$1\f[\En[par*prev-font]]\E$2
^351da0dc macros/tmac.s (James Clark          1991-06-02 04:20:34 -0500 1478)
.\}
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1479)
.el .ft \\$2
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1480)
\\..
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1481)
..
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1482)
.par*define-font-macro B B
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1483)
.par*define-font-macro I I
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1484)
.par*define-font-macro BI BI
71e9155c3 tmac/tmac.s   (James Clark          1993-03-03 13:14:51 -0500 1485)
.par*define-font-macro CW CR




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 26 Oct 2020 07:38:10 AM UTC  Name: s-R-fix.diff  Size: 542B   By:
gbranden

<http://savannah.gnu.org/bugs/download.php?file_id=50104>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59348>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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