gbranden pushed a commit to branch master
in repository groff.
commit 3704ba055d679cc1b9d8615f15f98c1ff52b78d2
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Oct 31 10:53:18 2026 -0500
[man]: `SY` behaves better when called invalidly.
* tmac/an-ext.tmac (SY): Configure hyphenation mode via `mY` macro call
even if invalidly given no arguments. This prevents later emission of
a potentially confusing warning in category "reg".
Fixes:
$ cat ATTIC/botched-synopsis.man
.TH foo 1 2026-10-31 "groff test suite"
.SH Name
foo \- frobnicate a bar
.SH Synopsis
.SY
.B foo
.RB [ \-q ]
.YS
nroff -ww -rLL=72n -man ATTIC/botched-synopsis.man
troff:ATTIC/botched-synopsis.man:8: warning: register 'mH' not defined [-w
reg]
foo(1) General Commands Manual foo(1)
Name
foo - frobnicate a bar
Synopsis
foo [-q]
groff test suite 2026‐10‐31 foo(1)
---
ChangeLog | 7 +++++++
tmac/an-ext.tmac | 3 ++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 8ea235fee..46a3ee04d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-10-31 G. Branden Robinson <[email protected]>
+
+ * tmac/an-ext.tmac (SY): Configure hyphenation mode via `mY`
+ macro call even if invalidly given no arguments. This prevents
+ later emission of a potentially confusing warning in category
+ "reg".
+
2026-10-28 G. Branden Robinson <[email protected]>
* src/utils/pdfmom/pdfmom.pl (autopsy): If the wait status of
diff --git a/tmac/an-ext.tmac b/tmac/an-ext.tmac
index cc91186da..ce7347355 100644
--- a/tmac/an-ext.tmac
+++ b/tmac/an-ext.tmac
@@ -89,7 +89,8 @@
. \}
. el \{\
. \" If (invalidly) given no arguments, do as little as possible.
-. \" Set these registers for subsequent `YS` use.
+. \" Set up registers for subsequent `YS` use.
+. mY
. nr mA \\n(.j
. nr mI \\n(.i
. \}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit