[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 20/28: [man]: Define blm-, lsm-called traps with `de1`.
From: |
G. Branden Robinson |
Subject: |
[groff] 20/28: [man]: Define blm-, lsm-called traps with `de1`. |
Date: |
Sat, 19 Jun 2021 17:24:13 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit fe8e848fec0c29658db1775fb7220c45aede4d42
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jun 19 12:03:12 2021 +1000
[man]: Define blm-, lsm-called traps with `de1`.
* tmac/an-old.tmac (an-blank-line-trap, an-leading-space-trap): We say
in a comment, "Macros ... that are called by traps of any kind must be
defined with `de1` because they might be called from a context where
compatibility mode is enabled." So do it.
---
ChangeLog | 7 +++++++
tmac/an-old.tmac | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 82c97ba..934d22b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2021-06-19 G. Branden Robinson <g.branden.robinson@gmail.com>
+ * tmac/an-old.tmac (an-blank-line-trap, an-leading-space-trap):
+ We say in a comment, "Macros ... that are called by traps of any
+ kind must be defined with `de1` because they might be called
+ from a context where compatibility mode is enabled." So do it.
+
+2021-06-19 G. Branden Robinson <g.branden.robinson@gmail.com>
+
* tmac/an-old.tmac (an-header): Lightly refactor; tighten.
2021-06-19 G. Branden Robinson <g.branden.robinson@gmail.com>
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index 3bcab59..bdc4b84 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -48,7 +48,7 @@
.\" === Define macros. ===
.\"
.\" Macros that are part of the external interface (TH, SH, P, etc.) or
-.\" which are called by traps of any kind must be defined with `de1`
+.\" that are called by traps of any kind must be defined with `de1`
.\" because they might be called from a context where compatibility mode
.\" is enabled. For other macros, `de` suffices.
.
@@ -66,13 +66,13 @@
. an-style-warn use of deprecated macro: .\\$0
..
.
-.de an-blank-line-trap
+.de1 an-blank-line-trap
. if (\\n[CHECKSTYLE] > 2) \
. an-style-warn blank line in input
. sp
..
.
-.de an-leading-space-trap
+.de1 an-leading-space-trap
. if (\\n[CHECKSTYLE] > 2) \
. if \\n[.u] \
. an-style-warn \\n[lsn] leading space(s) on input line
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 20/28: [man]: Define blm-, lsm-called traps with `de1`.,
G. Branden Robinson <=