summaryrefslogtreecommitdiff
path: root/tmac/doc-common
diff options
context:
space:
mode:
authorwl <wl>2008-09-06 07:03:21 +0000
committerwl <wl>2008-09-06 07:03:21 +0000
commit8ed813fb04e1f67b5ea8bcbbce497abd80284e95 (patch)
treee2d0f3b2682de0916f1f428d936a308fd03cc61a /tmac/doc-common
parente000999febe0e5c470a3db63f43398e3303bf227 (diff)
downloadgroff-8ed813fb04e1f67b5ea8bcbbce497abd80284e95.tar.gz
* tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
`.Nm' work properly if next manual page is printed.
Diffstat (limited to 'tmac/doc-common')
-rw-r--r--tmac/doc-common8
1 files changed, 8 insertions, 0 deletions
diff --git a/tmac/doc-common b/tmac/doc-common
index dc8cc28c..30003cf2 100644
--- a/tmac/doc-common
+++ b/tmac/doc-common
@@ -219,6 +219,7 @@
.\" NS doc-document-title
.\" NS doc-section
.\" NS doc-volume
+.\" NS doc-command-name
.\" NS
.\" NS local variables:
.\" NS doc-volume-as-XXX
@@ -319,6 +320,7 @@
. ds doc-document-title UNTITLED
. ds doc-volume LOCAL
. ds doc-section Null
+. ds doc-command-name
.
. if !"\$1"" \
. ds doc-document-title "\$1
@@ -379,6 +381,7 @@
.\" NS
.\" NS modifies:
.\" NS doc-operating-system
+.\" NS doc-command-name
.\" NS
.\" NS local variables:
.\" NS doc-operating-system-XXX-XXX
@@ -503,6 +506,8 @@
.ds doc-operating-system-DragonFly-1.5 1.5
.
.de Os
+. ds doc-command-name
+.
. ie "\$1"" \
. ds doc-operating-system "\*[doc-default-operating-system]
. el \{ .ie "\$1"ATT" \{\
@@ -563,6 +568,7 @@
.\" NS
.\" NS modifies:
.\" NS doc-date-string
+.\" NS doc-command-name
.\" NS
.\" NS local variables:
.\" NS doc-date-XXX
@@ -583,6 +589,8 @@
.ds doc-date-12 December
.
.de Dd
+. ds doc-command-name
+.
. ie \n[.$] \{\
. ie (\n[.$] == 3) \
. ds doc-date-string \$1\~\$2 \$3