gbranden pushed a commit to branch master
in repository groff.
commit ecb578c0d33b55cc87c79c1529c9cbf4b4c513ad
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jan 16 16:22:08 2023 -0600
[mm]: Tweak and refactor warning diagnostics.
* contrib/mm/m.tmac (P): Quote unrecognized argument in warning
diagnostic.
(OK, PM): Refactor to use `\$0`.
(1C): Explain poorly supported better in warning diagnostic.
---
contrib/mm/ChangeLog | 6 ++++++
contrib/mm/m.tmac | 11 +++++++----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 611ef328e..60a4b4657 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-16 G. Branden Robinson <[email protected]>
+
+ * m.tmac (P): Quote unrecognized argument in warning diagnostic.
+ (OK, PM): Refactor to use `\$0`.
+ (1C): Explain poorly supported better in warning diagnostic.
+
2023-01-16 G. Branden Robinson <[email protected]>
* m.tmac (Tm): Align with definition of `Sm`, with analogous
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index d171dd97a..5f90c628d 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -454,7 +454,8 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
. shift
. \}
. el .if (\\$1 > 1) \
-. @warning \\$0: ignoring unsupported paragraph type \\$1
+. @warning \\$0: ignoring unsupported paragraph type \
+'\\$1'
.\}
.\" skip P if previous heading
.if \\n[D]>2 \{\
@@ -991,10 +992,10 @@ numeric; got '\\$1'
.@warning \\$0: not implemented except with ".MT 4"
..
.de OK
-.@warning OK: not implemented
+.@warning \\$0: not implemented
..
.de PM
-.@warning PM: not implemented
+.@warning \\$0: not implemented
..
.\" ######## module hd #################
.\" support for usermacro
@@ -1594,7 +1595,9 @@ numeric; got '\\$1'
.el \{\
. if d ft*div \{\
. if \\n[pg*ncol-i]>0 \{\
-. @warning 1C: footnotes will be messy
+. @warning \\$0: returning to single-column \
+layout with suppressed page break and footnote pending; output may be \
+messy
. \}
. \}
. if \\n[pg*last-ncol]>0 \{\
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit