summaryrefslogtreecommitdiff
path: root/tmac/fallbacks.tmac
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2020-04-19 15:24:24 +1000
committerG. Branden Robinson <g.branden.robinson@gmail.com>2020-04-19 15:24:24 +1000
commit1474eebe1f83c439dd6d422a311c1c39417fac40 (patch)
treecdb9974245c5b37b99914ccc2b69228117ebcb68 /tmac/fallbacks.tmac
parentd4c4f4786d4652a96b394963f9e5e9b15d27c6f0 (diff)
downloadgroff-git-1474eebe1f83c439dd6d422a311c1c39417fac40.tar.gz
**/*.{man,tmac}: Save compatibility mode robustly.
Use new \n[.cp] register to save compatibilty mode. Use register names based on the filename (at the source maintenance level) to avoid clobbering other files' saved compatibility modes. tmac/html.tmac: Eliminate reference to saved-compatibility register by moving its test inside the block where compatibility mode is off. This is the only part of this changeset that was not automated.
Diffstat (limited to 'tmac/fallbacks.tmac')
-rw-r--r--tmac/fallbacks.tmac4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmac/fallbacks.tmac b/tmac/fallbacks.tmac
index 72381ed1f..aa6df8115 100644
--- a/tmac/fallbacks.tmac
+++ b/tmac/fallbacks.tmac
@@ -4,7 +4,7 @@
.\"
.\" This file contains generic fallback characters.
.
-.nr _C \n(.C
+.do nr *groff_fallbacks_tmac_C \n[.cp]
.cp 0
.
.\" fall back to GREEK CAPITAL LETTER DELTA for INCREMENT
@@ -62,7 +62,7 @@
.fchar \[u217e] d
.fchar \[u217f] m
.
-.cp \n[_C]
+.cp \n[*groff_fallbacks_tmac_C]
.
.\" Local Variables:
.\" mode: nroff