gbranden pushed a commit to branch master
in repository groff.

commit f8f7bccac8d2829c60c9fe92410721b383687468
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jul 20 03:58:30 2025 -0500

    tmac/an.tmac: Trivially refactor (2/5).
    
    ...continuing a name space reform in progress since 2022.
    
    * tmac/an.tmac (an-reset-paragraph-spacing): Rename this...
      (an*reset-paragraph-spacing): ...to this.
---
 ChangeLog    |  4 +++-
 tmac/an.tmac | 10 +++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8314fc729..5bfa9192f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,9 @@
        * tmac/an.tmac: Trivially refactor, continuing a name space
        reform in progress since 2022.
        (an-break-paragraph): Rename this...
-       (an*break-paragraph): ...to this.
+       (an*break-paragraph): ...to this...
+       (an-reset-paragraph-spacing): ...and this...
+       (an*reset-paragraph-spacing): ...to this.
 
 2025-07-18  G. Branden Robinson <[email protected]>
 
diff --git a/tmac/an.tmac b/tmac/an.tmac
index c2e9a045a..fcbd46d85 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -139,7 +139,11 @@
 .  ta T .5i
 ..
 .
-.de an-reset-paragraph-spacing
+.\" This logic would be part of `an*reset-paragraph-parameters`, but
+.\" unfortunately we have to support the legacy `PD` macro, which
+.\" permits unseemly fiddling at arbitrary places in the text.  (99
+.\" times out of 100, all people want is a "compact list" macro.)
+.de an*reset-paragraph-spacing
 .  ie \\n[.$] .nr PD (v;\\$1)
 .  el         .nr PD (.4v >? \n[.V])
 .  \" Restore spacing to handle a "belated" `PD` call immediately after
@@ -283,7 +287,7 @@
 .
 .  an*reset-hyphenation-mode
 .  an-reset-tab-stops
-.  an-reset-paragraph-spacing
+.  an*reset-paragraph-spacing
 .  an-reset-margin-and-inset-level
 .
 .  nr an-need-no-space-mode 0
@@ -406,7 +410,7 @@
 .\" .PD [distance]
 .de1 PD
 .  nop \\*[an-deprecation-warn]\\
-.  nop \\*[an-reset-paragraph-spacing]\\
+.  nop \\*[an*reset-paragraph-spacing]\\
 ..
 .
 .\" Write the page header; can be redefined by man.local.

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

Reply via email to