groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 23/40: [man, mdoc]: Refactor (3/4).


From: G. Branden Robinson
Subject: [groff] 23/40: [man, mdoc]: Refactor (3/4).
Date: Mon, 12 Dec 2022 19:28:06 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 6deb61bfb5fbd6ed2495ce76a120d047e08655df
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Dec 11 11:56:42 2022 -0600

    [man, mdoc]: Refactor (3/4).
    
    [man, mdoc]: Trivially refactor.
    
    * tmac/an.tmac (an-start-new-document): Rename this...
    
      (an*break-page-with-new-number): ...to reflect its reduced
      responsibility.
    
    * tmac/mdoc/doc-common (doc-start-new-document): Rename this...
    
      (doc-break-page-with-new-number): ...to reflect its reduced
      responsibility.
---
 ChangeLog            | 12 ++++++++++++
 tmac/an.tmac         |  8 ++++----
 tmac/mdoc/doc-common | 10 +++++-----
 3 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7297b6073..1ee978a28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2022-12-11  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [man, mdoc]: Trivially refactor.
+
+       * tmac/an.tmac (an-start-new-document): Rename this...
+       (an*break-page-with-new-number): ...to reflect its reduced
+       responsibility.
+
+       * tmac/mdoc/doc-common (doc-start-new-document): Rename this...
+       (doc-break-page-with-new-number): ...to reflect its reduced
+       responsibility.
+
 2022-12-11  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [man, mdoc]: Refactor to separate page number management from
diff --git a/tmac/an.tmac b/tmac/an.tmac
index f3f44a682..d562b3bf9 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -176,9 +176,9 @@
 .  nr an-saved-prevailing-indent1 \\n[IN]
 ..
 .
-.\" Update the page number depending on the C (consecutive numbering)
-.\" register.
-.de an-start-new-document
+.\" Break the page and update its number depending on the C (consecutive
+.\" numbering) register.
+.de an*break-page-with-new-number
 .  ie \\n[C] .bp (\\n[%] + 1) \" argument NOT redundant before page 1
 .  el        .bp 1
 ..
@@ -218,7 +218,7 @@
 .    \" Clear the page header trap so it is not sprung with stale
 .    \" information.
 .    ch an-header
-.    an-start-new-document
+.    an*break-page-with-new-number
 .    nr an-is-first-page-of-document 1
 .  \}
 .
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index eb32bec77..c757b387c 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -298,7 +298,7 @@
 .    \" Clear the page header trap so it is not sprung with stale
 .    \" information.
 .    ch doc-header
-.    doc-start-new-document
+.    doc-break-page-with-new-number
 .    nr doc-is-first-page-of-document 1
 .  \}
 .
@@ -1149,12 +1149,12 @@
 .ec
 .
 .
-.\" NS doc-start-new-document macro
-.\" NS   Update the page number depending on the C (consecutive
-.\" NS   numbering) register.
+.\" NS doc-break-page-with-new-number macro
+.\" NS   Break the page and update its number depending on the C
+.\" NS   (consecutive numbering) register.
 .
 .eo
-.de doc-start-new-document
+.de doc-break-page-with-new-number
 .  ie \n[C] .bp (\n[%] + 1) \" argument NOT redundant before page 1
 .  el       .bp 1
 ..



reply via email to

[Prev in Thread] Current Thread [Next in Thread]