gbranden pushed a commit to branch master
in repository groff.

commit 9f7382d36a690a1a83fd383106e6de6945163ff5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Aug 2 06:08:44 2025 -0500

    [man]: Trivially refactor.
    
    Rename `an-end` to `an*end-document`.
    
    * tmac/an.tmac (an-end, an*end-document): Do it.
    
    * tmac/andoc.tmac (reload-doc):
    * tmac/an.tmac (TH): Update call sites.
    
    * tmac/an.tmac ([initialization]): Configure it under new name.
---
 ChangeLog       | 10 ++++++++++
 tmac/an.tmac    |  8 ++++----
 tmac/andoc.tmac |  4 ++--
 3 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index eb392a584..87093ce7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-08-02  G. Branden Robinson <[email protected]>
+
+       [man]: Trivially refactor.  Rename `an-end` to
+       `an*end-document`.
+
+       * tmac/an.tmac (an-end, an*end-document): Do it.
+       * tmac/andoc.tmac (reload-doc):
+       * tmac/an.tmac (TH): Update call sites.
+       * tmac/an.tmac ([initialization]): Configure it under new name.
+
 2025-08-02  G. Branden Robinson <[email protected]>
 
        [mdoc]: Trivially refactor.  Rename `doc-end-macro` to
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 93d2001d7..7634b7478 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -94,7 +94,7 @@
 .\" write the footer for the final man page rendered.  We can also be
 .\" called by andoc when switching to an mdoc(7) page, irrespective of
 .\" continuous rendering mode.
-.de1 an-end
+.de1 an*end-document
 .  if !r an-TH-was-called .return
 .  an*input-trap
 .  if '\\n[.z]'an*paragraph-tag' .an*TP-trap
@@ -327,7 +327,7 @@
 .  \" If batch processing (rendering multiple) man page documents, we
 .  \" must handle the end of a previous document.
 .  if \\n[an*need-titles-reset] \{\
-.    if \\n[cR] .an-end
+.    if \\n[cR] .an*end-document
 .
 .    \" Clear the page header trap so it is not sprung with stale
 .    \" information.
@@ -336,7 +336,7 @@
 .  \}
 .  if \\n[C] .rr P
 .
-.  nr an-TH-was-called 1 \" an-end can make certain assumptions.
+.  nr an-TH-was-called 1 \" an*end-document can make certain assumptions.
 .
 .  \" The previous document rendered in a batch may have been in a
 .  \" different language.
@@ -436,7 +436,7 @@
 .    \}
 .  \}
 .
-.  em an-end
+.  em an*end-document
 .  nr an*need-titles-reset 1
 ..
 .
diff --git a/tmac/andoc.tmac b/tmac/andoc.tmac
index 2793c0a18..cbfebac57 100644
--- a/tmac/andoc.tmac
+++ b/tmac/andoc.tmac
@@ -42,8 +42,8 @@
 .de reload-doc
 .  \" Flush any partially collected output line and write page footer in
 .  \" continuous rendering mode.
-.  do if d an-end \
-.    do an-end
+.  do if d an*end-document \
+.    do an*end-document
 .
 .  \" Remove traps planted by an.tmac.
 .  do ch an-header

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to