[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #53043] [PATCH] an-old.tmac: Check the number of arguments for some
From: |
G. Branden Robinson |
Subject: |
[bug #53043] [PATCH] an-old.tmac: Check the number of arguments for some macros |
Date: |
Sat, 5 Mar 2022 17:40:58 -0500 (EST) |
Follow-up Comment #8, bug #53043 (project groff):
The CHECKSTYLE register remains undocumented. See bug #62042 for its possible
future.
commit 25d2a812faf52e4d952769920ccfbe5e61cb1b43
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Sat Nov 14 13:25:26 2020 +1100
tmac/an-old.tmac: Add style checks.
Add register, CHECKSTYLE, to capture user preference for emission of
style-related diagnostics. Defaults off.
Not documented yet because I expect there to be some discussion on the
mailing list over whether it should be and/or what the register should
be called.
Whatever emerges from that discussion can and should be parallelized in
support and form with diagnostics in our mdoc(7) implementation, which
has some style-oriented diagnostics that issue at the same level as more
serious problems.
* tmac/an-old.tmac: Initialize CHECKSTYLE to false if not already set.
(an-style-warn): New macro emits diagnostic of type "style" when
called if CHECKSTYLE register is true.
(TH, RI, IR, IB, BI, RB, BR): Call an-style-warn if fewer than two
arguments are seen.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?53043>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #53043] [PATCH] an-old.tmac: Check the number of arguments for some macros,
G. Branden Robinson <=