groff-commit
[Top][All Lists]
Advanced

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

[groff] 22/46: tmac/an.tmac: Redefine `R` as string.


From: G. Branden Robinson
Subject: [groff] 22/46: tmac/an.tmac: Redefine `R` as string.
Date: Wed, 7 Dec 2022 04:32:34 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 5f41248b8342854b14344b07d34d2ee4e2547d23
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Dec 3 05:40:42 2022 -0600

    tmac/an.tmac: Redefine `R` as string.
    
    * tmac/an.tmac (R): Drop macro definition, which implements a hack for
      people who try to use "R" as a font style macro.  This doesn't seem to
      happen much in actual practice (though perhaps the diagnostic this
      hack produces is responsible for suppression of the mistake).
      Retaining it interferes with the "nop"-ification of this macro file.
    
    * NEWS: Add item.
---
 ChangeLog    | 10 ++++++++++
 NEWS         |  4 ++++
 tmac/an.tmac | 19 ++-----------------
 3 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6a569b638..5858fbed2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-12-03  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/an.tmac (R): Drop macro definition, which implements a
+       hack for people who try to use "R" as a font style macro.  This
+       doesn't seem to happen much in actual practice (though perhaps
+       the diagnostic this hack produces is responsible for suppression
+       of the mistake).  Retaining it interferes with the
+       "nop"-ification of this macro file.
+       * NEWS: Add item.
+
 2022-12-03  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/an-ext.tmac: Use truly traditional hyphenation mode on
diff --git a/NEWS b/NEWS
index 26ca909ac..9cff7c5fc 100644
--- a/NEWS
+++ b/NEWS
@@ -308,6 +308,10 @@ o The an (man) macro package's `TS` macro no longer 
inserts vertical
   2002).  Man page authors may freely use paragraphing macros around
   tables if vertical space is desired.
 
+o The an (man) macro package no longer attempts to detect misuse of the
+  `R` string as a macro.  The `R` string itself is a legacy feature, not
+  required in modern man pages; see groff_man_style(7).
+
 o The groff_man(7) man page documenting the groff implementation of the
   an (man) macro package has been split into two pages.  The original
   page remains as a terser reference for experienced users.  A new page,
diff --git a/tmac/an.tmac b/tmac/an.tmac
index a75d76362..5d6fab8ce 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1218,29 +1218,14 @@ contains unsupported escape sequence
 .  if \\n[an*is-output-html] .ll \\n[an-EQ-ll]u
 ..
 .
-.\" Define R "string".  Some ms(7) veterans confusedly use '.R' in man
-.\" pages to try to switch to the roman font style.  Attempt to catch
-.\" this misuse by checking for arguments and warning about it.
-.de1 R
-\c
-.  ie \\n[.$] \{\
-.    ds an-msg 'R' is a string (producing the registered sign),\"
-.    as an-msg " not a macro\"
-.    an-warn \\*[an-msg]
-.    rm an-msg
-.    nop \\$*
-.  \}
-.  el \{\
-.    ie c\[rg] .nop \[rg]\c
-.    el        .nop (Reg.)\c
-.  \}
-..
 .
 .\" === Define strings. ===
 .\"
 .\" These strings must work in compatibility mode also.
 .
 .ds S \s'\\n(PSu'\"
+.ie c\[rg] .ds R \(rg\"
+.el        .ds R (Reg.)\"
 .ie c\[tm] .ds Tm \(tm\"
 .el        .ds Tm (TM)\"
 .ie c\[lq] .ds lq \(lq\"



reply via email to

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