summaryrefslogtreecommitdiff
path: root/tmac/pspic.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/pspic.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/pspic.tmac')
-rw-r--r--tmac/pspic.tmac4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmac/pspic.tmac b/tmac/pspic.tmac
index b366f3bd1..049ef1a77 100644
--- a/tmac/pspic.tmac
+++ b/tmac/pspic.tmac
@@ -11,7 +11,7 @@
.
.do if d PSPIC .nx
.
-.nr _C \n(.C
+.do nr *groff_pspic_tmac_C \n[.cp]
.cp 0
.
.de PSPIC
@@ -161,7 +161,7 @@
. HTML-IMAGE-END
..
.
-.cp \n[_C]
+.cp \n[*groff_pspic_tmac_C]
.
.\" Local Variables:
.\" mode: nroff