gbranden pushed a commit to branch master
in repository groff.

commit 886c1f4cfacb63c3e1454cca5ef90b266f8e83cb
Author: G. Branden Robinson <[email protected]>
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 <[email protected]>
+
+       * 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 <[email protected]>
 
        * 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 [email protected] 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 \{\

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to