gbranden pushed a commit to branch master
in repository groff.

commit d26fa41818cd39f66061830e56cd2b2706f845a2
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jan 16 13:42:33 2023 -0600

    [mm]: Improve handling of `CS` macro.
    
    * contrib/mm/m.tmac (CS): Define to throw diagnostic when used without
      ".MT 4".  (Later, if the "4.MT" file is sourced, this definition is
      replaced.)
    * contrib/mm/groff_mm.7.man (Description): Clarify `CS` support status.
---
 contrib/mm/ChangeLog      | 7 +++++++
 contrib/mm/groff_mm.7.man | 9 +++++++--
 contrib/mm/m.tmac         | 3 +++
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 3a9837c15..c95c45fc7 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-16  G. Branden Robinson <[email protected]>
+
+       * m.tmac (CS): Define to throw diagnostic when used without ".MT
+       4".  (Later, if the "4.MT" file is sourced, this definition is
+       replaced.)
+       * groff_mm.7.man (Description): Clarify `CS` support status.
+
 2023-01-16  G. Branden Robinson <[email protected]>
 
        * m.tmac (MOVE, SM, AT, LO): Weaken diagnostics when given no
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index 37f7b9540..a92604f8f 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -90,8 +90,6 @@ the
 (\[lq]private\[rq] heading)
 register;
 and the
-.B CS
-(cover sheet),
 .B OK
 (other keywords),
 and
@@ -100,6 +98,13 @@ and
 macros.
 .
 .
+.IP \[bu] 2n
+The
+.B CS
+(output cover sheet)
+macro is implemented only for memorandum type 4.
+.
+.
 .IP \[bu]
 The
 .I grap
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 42c6c07dd..3a7d900b7 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -977,6 +977,9 @@ numeric; got '\\$1'
 .acc@under-def , \(ac
 .\" ######## module uni #################
 .\" unimplemented macros
+.de CS
+.@warning \\$0: not implemented except with ".MT 4"
+..
 .de OK
 .@warning OK: not implemented
 ..

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

Reply via email to