groff-commit
[Top][All Lists]
Advanced

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

[groff] 06/24: [mdoc]: Don't override `cR` register in "doc-old".


From: G. Branden Robinson
Subject: [groff] 06/24: [mdoc]: Don't override `cR` register in "doc-old".
Date: Sun, 10 Nov 2024 14:56:20 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 886c1f4cfacb63c3e1454cca5ef90b266f8e83cb
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Nov 8 09:35:02 2024 -0600

    [mdoc]: Don't override `cR` register in "doc-old".
    
    * tmac/doc-old.tmac ([initialization]): Set `cR` register only if not
      already defined on the command line.  This is so that the package's
      trap locations can be compared with the original from
      4.3BSD-Reno (1990) even in nroff mode.
---
 ChangeLog         | 7 +++++++
 tmac/doc-old.tmac | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6f98b842c..68a137fc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-11-08  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/doc-old.tmac ([initialization]): Set `cR` register only
+       if not already defined on the command line.  This is so that the
+       package's trap locations can be compared with the original from
+       4.3BSD-Reno (1990) even in nroff mode.
+
 2024-11-08  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/utils/grog/grog.pl (construct_command): Check for
diff --git a/tmac/doc-old.tmac b/tmac/doc-old.tmac
index dc7fd90bf..f98a02095 100644
--- a/tmac/doc-old.tmac
+++ b/tmac/doc-old.tmac
@@ -33,7 +33,7 @@
 .\"     Slightly modified by jjc@jclark.com to work with groff as well.
 .\"
 .\" Assume nroff on crt's only if cR==1
-.if n .nr cR 1
+.do if !r cR .if n .nr cR 1
 .\"    STRING CONSTANTS
 .\"    DITROFF
 .if t \{\



reply via email to

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