[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 23/30: [mm]: Slightly refactor.
From: |
G. Branden Robinson |
Subject: |
[groff] 23/30: [mm]: Slightly refactor. |
Date: |
Fri, 8 Nov 2024 01:14:31 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 1db26e780712a04b4cc818edbdfb314fbd4f9d14
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Nov 7 12:02:22 2024 -0600
[mm]: Slightly refactor.
* contrib/mm/m.tmac: Assign a number format to the `cov*mm` and `cov*dd`
registers only once instead of each time `cov*set-date` is called.
These are internal registers that a document shouldn't meddle with.
---
contrib/mm/ChangeLog | 7 +++++++
contrib/mm/m.tmac | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 359b98383..482843a95 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2024-11-07 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * m.tmac: Assign a number format to the `cov*mm` and `cov*dd`
+ registers only once instead of each time `cov*set-date` is
+ called. These are internal registers that a document shouldn't
+ meddle with.
+
2024-11-07 G. Branden Robinson <g.branden.robinson@gmail.com>
* m.tmac: Trivially refactor: rename string `cov*new-date` to
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 50872eee1..479b188d3 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3508,11 +3508,11 @@ argument: '\\$2'
.de AE
\\*[debug@dump-args]\\
..
+.af cov*mm 00
+.af cov*dd 00
.de cov*set-date
.nr cov*mm \\n[mo]
.nr cov*dd \\n[dy]
-.af cov*mm 01
-.af cov*dd 01
.ie '0'\\$1' .ds cov*date \\*[MO\\n[mo]] \\n[dy], \\n[year]
.el .ds cov*date \\n[year]-\\n[cov*mm]-\\n[cov*dd]
..
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 23/30: [mm]: Slightly refactor.,
G. Branden Robinson <=