URL:
  <https://savannah.gnu.org/bugs/?67332>

                 Summary: [mom] "empty parentheses" warning issed as of commit
9cc13da089, 15 July
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Thu 17 Jul 2025 03:19:29 PM GMT
                Category: Macro package mom
                Severity: 2 - Minor
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: PTPi
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 17 Jul 2025 03:19:29 PM GMT By: G. Branden Robinson <gbranden>
Hi Peter,

In (very) recent builds of _groff_ I'm seeing the following diagnostic:


  GROFF    contrib/mom/examples/sample_docs.pdf
troff: backtrace: '../contrib/mom/om.tmac':11607: macro 'HEADING'
troff: backtrace: file '../contrib/mom/examples/sample_docs.mom':525
troff:../contrib/mom/examples/sample_docs.mom:525: warning: empty parentheses


A bisection reveals the applicable commit to be this one:


commit 9cc13da0893323217ffd02070adf54c6134e1f5f (HEAD)
Author: Peter Schaffter <[email protected]>
Date:   Tue Jul 15 13:18:12 2025 -0400

    Improves management of multi-line headings.
    
    Adds DEFAULT (1/10 of prevailing leading) to acceptable
    BASELINE_ADJUST arguments in HEADING_STYLE.


...and a gander at the _mom_ line griped about in the backtrace suggests that
a register went undefined (but as we don't build _mom_ documents with `-ww`,
but merely `-wall`, GNU _troff_ did not issue a warning in category `reg`).


$ sed -n '11607p' contrib/mom/om.tmac
.             if
(\\n[nl-2]-\\n[nl-1])<(\\*[$HEADING_\\n[#LEVEL]_BASELINE_ADJ]) .sp









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67332>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to