URL: <https://savannah.gnu.org/bugs/?67448>
Summary: [PATCH] [tmac] aandoc.tmac: add sourcing "an.tmac"
earlier to have used variables in a defined state
Group: GNU roff
Submitter: bjarniig
Submitted: Thu 21 Aug 2025 12:20:20 AM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 21 Aug 2025 12:20:20 AM GMT By: Bjarni Ingi Gislason <bjarniig>
From 2b3d8c50f8a1609a6e42a5b569ae65e1b17b0b7f Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <[email protected]>
Date: Thu, 21 Aug 2025 00:14:41 +0000
Subject: [PATCH] [tmac] andoc.tmac: add sourcing "an.tmac" earlier to have
used variables in a defined state
Directory: tmac
Test file:
.\" From gawk(1)
.if !\w@\*(lq@ \{\
. tm String lq is empty
.\}
.TH GAWK 1 "June 1 2025" "Free Software Foundation" "Utility Commands"
.SH NAME
gawk \- pattern scanning and processing language
--- cut ---
Signed-off-by: Bjarni Ingi Gislason <[email protected]>
---
tmac/andoc.tmac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tmac/andoc.tmac b/tmac/andoc.tmac
index cbfebac57..1c9fd9f21 100644
--- a/tmac/andoc.tmac
+++ b/tmac/andoc.tmac
@@ -27,6 +27,10 @@
.do nr *groff_andoc_tmac_C \n[.cp]
.cp 0
.
+.\" Include "an.tmac" early to get those variables defined,
+.\" that are used before the macro TH is called.
+.mso an.tmac
+.
.als andoc-em em
.als andoc-bp bp
.als andoc-ne ne
--
2.50.1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67448>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
