gbranden pushed a commit to branch master
in repository groff.
commit 5393b0e9f0348307ea2b59c7f13ef9b65b06a85e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Oct 2 20:07:04 2026 -0500
[mm]: Get some noise out of reference files.
* contrib/mm/m.tmac: Define `hd@mark-trimmed` unconditionally (as
empty), still permitting later redefinition, silencing a harmless
warning in category `mac` that gets scrawled into the generated
reference file (typically via mmroff(1)) if a document uses the groff
mm reference system (`INITR`) but not `H` headings.
Fixes:
troff:contrib/mm/tests/artifacts/use-reference.mm:55: warning: name
'hd@mark-trimmed' not defined [-w mac]
---
contrib/mm/ChangeLog | 8 ++++++++
contrib/mm/m.tmac | 3 ++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 9502e4160..c58161531 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,11 @@
+2026-10-02 G. Branden Robinson <[email protected]>
+
+ * m.tmac: Define `hd@mark-trimmed` unconditionally (as empty),
+ still permitting later redefinition, silencing a harmless
+ warning in category `mac` that gets scrawled into the generated
+ reference file (typically via mmroff(1)) if a document uses the
+ groff mm reference system (`INITR`) but not `H` headings.
+
2026-09-08 G. Branden Robinson <[email protected]>
* m.tmac (VL, BVL): Alter internal logic to avoid interpolating
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index eeed786d0..c6fd78364 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -1162,7 +1162,8 @@ numeric; got '\\$1'
..
.\" ######## module hd #################
.\" support for usermacro
-.nr hd*h1-page 1 \" last page-number for level 1 header.
+.ds hd@mark-trimmed \" empty
+.nr hd*h1-page 1\" last page-number for level 1 header.
.nr hd*htype 0
.ds hd*sect-pg
.ds hd*mark
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit