summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tmac/doc-common8
-rw-r--r--tmac/groff_man.man3
3 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bd203257..7eeecd6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-06 Werner LEMBERG <wl@gnu.org>
+
+ * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
+ `.Nm' work properly if next manual page is printed.
+
2008-08-20 Werner LEMBERG <wl@gnu.org>
* src/preproc/tbl/tbl.man: Document computation of element widths.
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
diff --git a/tmac/groff_man.man b/tmac/groff_man.man
index ae586f56..fee8a48e 100644
--- a/tmac/groff_man.man
+++ b/tmac/groff_man.man
@@ -1,5 +1,5 @@
.ig
-Copyright (C) 1999-2000, 2001, 2002, 2003, 2004, 2005, 2007
+Copyright (C) 1999-2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008
Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this
@@ -1114,6 +1114,7 @@ Local changes and customizations should be put into this file.
.BR @g@refer (@MAN1EXT@),
.BR man (1),
.BR man (7),
+.BR groff_mdoc (7)
.
.
.\" -----------------------------------------------------------------