summaryrefslogtreecommitdiff
path: root/tmac/doc.tmac
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-04-10 13:33:32 +0000
committerwlemb <wlemb>2001-04-10 13:33:32 +0000
commit620edff2a2e9827f9ea704a5d4901f1ccf402e06 (patch)
tree4251faadc32a48a2a47fc067c09a6337b9d0fc6e /tmac/doc.tmac
parent3eba6c39c3d6e7fd573a1c3f74063a35f9861407 (diff)
downloadgroff-620edff2a2e9827f9ea704a5d4901f1ccf402e06.tar.gz
Added skeleton macro for defunct macros.
Updated documentation. * tmac/doc.tmac (doc-defunct-macro): New macro. (Db, Ds, Ex, Or, Sf): Reimplemented using this macro. (doc-restore-global-vars): Fixed typo. * tmac/doc-common: Removed `Or' and `Sf' registers. Moved obsolete `Ds' macro to doc.tmac. * tmac/groff_mdoc.man: Bump document date. Document `.Vt' under ``Variable Types''. Removed documentation for obsolete `.Or' macro.
Diffstat (limited to 'tmac/doc.tmac')
-rw-r--r--tmac/doc.tmac71
1 files changed, 29 insertions, 42 deletions
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index da546a27..a280a099 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -71,14 +71,6 @@
.eo
.
.
-.\" NS Db macro
-.\" NS defunct
-.
-.de Db
-. tm mdoc error: .Db defunct (#\n[.c])
-..
-.
-.
.\" NS doc-macro-name global string
.\" NS name of calling request (set in each user-requestable macro)
.
@@ -875,21 +867,6 @@
.ds doc-Li-usage argument
.
.
-.\" NS Or user macro
-.\" NS pipe symbol (OR)
-.\" NS
-.\" NS this function uses the `Ic' font
-.\" NS
-.\" NS width register `Or' set in doc-common
-.\"
-.\" XXX: What is this function good for? It sets a font but does not print
-.\" a pipe symbol. And it isn't documented.
-.
-.als Or doc-generic-macro
-.ds doc-Or-usage
-.als doc-Or-font doc-Ic-font
-.
-.
.\" NS Ms user macro
.\" NS math symbol
.\" NS
@@ -3388,7 +3365,6 @@
. nr doc-reg-drgv 0
. while (\n[doc-reg-drgv] <= \n[doc-display-depth]) \{\
. ds doc-display-type-stack\n[doc-reg-drgv] "\*[doc-display-type-stack\n[doc-reg-drgv]-saved]
-. nr doc-display-have-indent-stack\n[doc-reg-drgv] \n[doc-display-have-indent-stack\n[doc-reg-drgv]-saved]
. nr doc-display-indent-stack\n[doc-reg-drgv] \n[doc-display-indent-stack\n[doc-reg-drgv]-saved]
. nr doc-display-ad-stack\n[doc-reg-drgv] \n[doc-display-ad-stack\n[doc-reg-drgv]-saved]
. nr doc-display-fi-stack\n[doc-reg-drgv] \n[doc-display-fi-stack\n[doc-reg-drgv]-saved]
@@ -3409,6 +3385,7 @@
. nr doc-reg-drgv 1
. while (\n[doc-reg-drgv] <= \n[doc-list-depth]) \{\
. ds doc-list-type-stack\n[doc-reg-drgv] "\*[doc-list-type-stack\n[doc-reg-drgv]-saved]
+. nr doc-list-have-indent-stack\n[doc-reg-drgv] \n[doc-list-have-indent-stack\n[doc-reg-drgv]-saved]
. nr doc-list-indent-stack\n[doc-reg-drgv] \n[doc-list-indent-stack\n[doc-reg-drgv]-saved]
. nr doc-compact-list-stack\n[doc-reg-drgv] \n[doc-compact-list-stack\n[doc-reg-drgv]-saved]
. ds doc-tag-prefix-stack\n[doc-reg-drgv] "\*[doc-tag-prefix-stack\n[doc-reg-drgv]-saved]
@@ -4357,14 +4334,6 @@
..
.
.
-.\" NS Ex user macro
-.\" NS defunct
-.
-.de Ex
-. tm mdoc error: .Ex defunct, use .D1: \$@ (#\n[.c])
-..
-.
-.
.\" NS Vt user macro
.\" NS variable type (for forcing old style variable declarations);
.\" NS this is not done in the same manner as .Ot for fortrash --
@@ -6066,16 +6035,6 @@
..
.
.
-.\" NS Sf user macro
-.\" NS defunct
-.\" NS
-.\" NS width register `Sf' set in doc-common
-.
-.de Sf
-. tm mdoc error: .Sf defunct, use .Pf or .Ns (#\n[.c])
-..
-.
-.
.\" NS Rv user macro
.\" NS return values
.\" NS
@@ -6172,6 +6131,34 @@
..
.
.
+.\" NS doc-defunct-macro macro
+.\" NS this is the skeleton for defunct macros
+.\" NS
+.
+.de doc-defunct-macro
+. tmc mdoc error: .\$0 defunct
+. if d doc-\$0-usage \
+. tmc , \*[doc-\$0-usage]
+. tm1 " (#\n[.c])
+..
+.
+.
+.\" obsolete macros
+.
+.als Db doc-defunct-macro
+.
+.als Ds doc-defunct-macro
+.
+.als Ex doc-defunct-macro
+.ds doc-Ex-usage use .D1
+.
+.als Or doc-defunct-macro
+.ds doc-Or-usage use `|'
+.
+.als Sf doc-defunct-macro
+.ds doc-Sf-usage use .Pf or .Ns
+.
+.
.rn em e@
.
.de em