groff-commit
[Top][All Lists]
Advanced

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

[groff] 15/50: [mm]: Make `BVL` macro's first argument optional.


From: G. Branden Robinson
Subject: [groff] 15/50: [mm]: Make `BVL` macro's first argument optional.
Date: Thu, 4 Jul 2024 21:49:15 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit b954a59b156ea979e1733c0be63cc963302ef026
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Jun 30 15:53:35 2024 -0500

    [mm]: Make `BVL` macro's first argument optional.
    
    * contrib/mm/m.tmac (BVL): Make first argument optional.  If omitted,
      use the paragraph indentation amount (register `Pi`) for the list
      item's text indentation.
    
    * NEWS: Document it.
    
    The groff_mm(7) man page already documented this behavior.
---
 NEWS                 |  4 ++++
 contrib/mm/ChangeLog |  6 ++++++
 contrib/mm/m.tmac    | 10 ++++++----
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/NEWS b/NEWS
index 7ee241299..8ff0de577 100644
--- a/NEWS
+++ b/NEWS
@@ -323,6 +323,10 @@ o Similarly, the m (mm) macro package's `PIC` macro (a GNU 
extension)
   now interprets an argument to its `-I` option in ens instead of ems
   by default.
 
+o The m (mm) macro package's `BVL` macro's first argument is now
+  optional.  If omitted, the paragraph indentation amount (register
+  `Pi`) is used for the list item's text indentation.
+
 o The m (mm) macro package's `DS` macro now interprets its third
   argument (a right-hand indentation) in ens by default, for consistency
   with the rest of the package.  This is a difference from DWB mm (which
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 925b258bb..d87e3a776 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-30  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * m.tmac (BVL): Make first argument optional.  If omitted, use
+       the paragraph indentation amount (register `Pi`) for the list
+       item's text indentation.
+
 2024-06-29  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * m.tmac (Rg, Sm, Tm): Favor registered sign, service
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index a499dcfc3..c87415332 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2500,13 +2500,15 @@ exceeds depth of nested lists (\\n[li*lvl])
 .      el         .LB 0\\$1 0 2 4 1 0 1
 .\}
 ..
-.\" Broken Variable List. As .VL but text begin on the next line
+.\" Broken Variable List: as .VL, but always break after the mark.
 .de BVL
 .if \\n[D]>2 .tm BVL $*
 .if \\n[.$]>3 .@warning \\$0: ignoring excess arguments
-.if \\n[.$]<1 .@error \\$0: expected 1 to 3 arguments, got \\n[.$]
-.ie \\n[.$]<3 .LB 0\\$1 0\\$2 0 -1
-.el           .LB 0\\$1 0\\$2 0 -1 \& 0 1
+.ie \\n[.$]=0 .ds list*ti \\n[Pi]
+.el           .ds list*ti \\$1
+.ie \\n[.$]<3 .LB 0\\*[list*ti] 0\\$2 0 -1
+.el           .LB 0\\*[list*ti] 0\\$2 0 -1 \& 0 1
+.rm list*ti
 ..
 .\" ####### module tbl #######################################
 .\" This module is copied from groff_ms and modified for mm.



reply via email to

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