groff-commit
[Top][All Lists]
Advanced

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

[groff] 27/34: [sboxes]: Add diagnostic macro to sboxes.tmac.


From: G. Branden Robinson
Subject: [groff] 27/34: [sboxes]: Add diagnostic macro to sboxes.tmac.
Date: Sat, 16 Oct 2021 23:07:28 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 1eaead451bd1ce9f32dfcb1e354b997d9dbee0e0
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Oct 17 10:02:23 2021 +1100

    [sboxes]: Add diagnostic macro to sboxes.tmac.
    
    * contrib/sboxes/sboxes.tmac (sboxes*error): Add new macro to produce
      diagnostic message in a standard format.
    
      (BoxStart): Use it.
---
 contrib/sboxes/ChangeLog   | 6 ++++++
 contrib/sboxes/sboxes.tmac | 6 +++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/contrib/sboxes/ChangeLog b/contrib/sboxes/ChangeLog
index 4e7428e..d2bcd2c 100644
--- a/contrib/sboxes/ChangeLog
+++ b/contrib/sboxes/ChangeLog
@@ -1,5 +1,11 @@
 2021-10-17  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * sboxes.tmac (sboxes*error): Add new macro to produce
+       diagnostic message in a standard format.
+       (BoxStart): Use it.
+
+2021-10-17  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        Make msboxes.ms quote its own source through a
        self-interpolation process (with help from sed and the build
        system), avoiding the need to manually keep the source document
diff --git a/contrib/sboxes/sboxes.tmac b/contrib/sboxes/sboxes.tmac
index fea3b03..63e4c1e 100644
--- a/contrib/sboxes/sboxes.tmac
+++ b/contrib/sboxes/sboxes.tmac
@@ -31,6 +31,10 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .nr GSBOX 1
 .nr bx@stack 0
 .
+.de sboxes*error
+.  tm sboxes.tmac:\\n[.F]:\\n[.c]: error: \\$*
+..
+.
 .de pdfbackground
 .device pdf: background \\$*
 ..
@@ -78,7 +82,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .           shift 2
 .         \}
 .         el \{\
-.           tm Unknown Token \\$1
+.           sboxes*error ignoring unrecognized BoxStart parameter '\\$1'
 .           shift
 .         \}
 .       \}



reply via email to

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