gbranden pushed a commit to branch master
in repository groff.

commit ccd5a1d2c52af2eecf059f1871ec27194330cfcf
Author: G. Branden Robinson <g.branden.robin...@gmail.com>
AuthorDate: Sat Aug 2 06:01:52 2025 -0500

    [mdoc]: Trivially refactor.
    
    Rename `doc-end-macro` to `doc-end-document`.
    
    * tmac/mdoc/doc-common.tmac (doc-end-macro, doc-end-document): Do it.
    
    * tmac/andoc.tmac (reload-man):
    * tmac/mdoc/doc-common.tmac (Dd): Update call sites.
    
    * tmac/doc.tmac ([initialization]): Configure it under new name.
---
 ChangeLog            | 11 +++++++++++
 tmac/andoc.tmac      |  4 ++--
 tmac/doc.tmac        |  2 +-
 tmac/mdoc/doc-common |  8 ++++----
 4 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0fd4190c0..eb392a584 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2025-08-02  G. Branden Robinson <g.branden.robin...@gmail.com>
+
+       [mdoc]: Trivially refactor.  Rename `doc-end-macro` to
+       `doc-end-document`.
+
+       * tmac/mdoc/doc-common.tmac (doc-end-macro, doc-end-document):
+       Do it.
+       * tmac/andoc.tmac (reload-man):
+       * tmac/mdoc/doc-common.tmac (Dd): Update call sites.
+       * tmac/doc.tmac ([initialization]): Configure it under new name.
+
 2025-08-02  G. Branden Robinson <g.branden.robin...@gmail.com>
 
        * tmac/doc.tmac ([initialization]): Configure end-of-input macro
diff --git a/tmac/andoc.tmac b/tmac/andoc.tmac
index 55cf1bceb..4e9e9d3e1 100644
--- a/tmac/andoc.tmac
+++ b/tmac/andoc.tmac
@@ -71,8 +71,8 @@
 .de reload-man
 .  \" Flush any partially collected output line and write page footer in
 .  \" continuous rendering mode.
-.  do if d doc-end-macro \
-.    do doc-end-macro
+.  do if d doc-end-document \
+.    do doc-end-document
 .
 .  \" Remove traps planted by mdoc/doc-{common,{n,dit}roff}.
 .  do ch doc-break-body-text
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 20ccd45e4..7b6b6aa18 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -7166,7 +7166,7 @@ arguments
 .
 .
 .rn em e@
-.e@ doc-end-macro
+.e@ doc-end-document
 .
 .eo
 .de em
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index a6d99e1df..e2caa80f8 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -297,7 +297,7 @@
 .  \" If also continuously rendering, cause a page transition to a new
 .  \" mdoc(7) document.
 .  if \n[doc-end-previous-document] \{\
-.    if \n[cR] .doc-end-macro
+.    if \n[cR] .doc-end-document
 .
 .    \" Clear the page header trap so it is not sprung with stale
 .    \" information.
@@ -1217,14 +1217,14 @@
 .ec
 .
 .
-.\" NS doc-end-macro macro
-.\" NS   finish output
+.\" NS doc-end-document macro
+.\" NS   Finish document output.
 .\" NS
 .\" NS modifies:
 .\" NS   doc-end-previous-document
 .
 .eo
-.de1 doc-end-macro
+.de1 doc-end-document
 .  doc-check-depth
 .
 .  if \n[cR] \{\

_______________________________________________
groff-commit mailing list
groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to