bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More MM Fixes


From: Larry Jones
Subject: More MM Fixes
Date: Sun, 30 May 2010 20:33:16 -0400 (EDT)

The current CVS mm macros misbehave if \n[P] has a non-numeric format
applied.  They also fail to disable traps before calling .EOP (if
defined) as promised in the documentation.  This fixes both problems:

Index: m.tmac
===================================================================
RCS file: /sources/groff/groff/contrib/mm/m.tmac,v
retrieving revision 2.38
diff -u -r2.38 m.tmac
--- m.tmac      30 May 2010 05:18:10 -0000      2.38
+++ m.tmac      31 May 2010 00:29:43 -0000
@@ -1233,8 +1233,11 @@
 .              ie d TP .TP
 .              el \{\
 '                      sp 3
+.                      ds hd*format \\g[P]
+.                      af P 0
 .                      ie ((\\n[P]=1)&((\\n[N]=1):(\\n[N]=2))) .sp
 .                      el .tl \\*[pg*header]
+.                      af P \\*[hd*format]
 .                      ie o .tl \\*[pg*odd-header]
 .                      el .tl \\*[pg*even-header]
 '                      sp 2
@@ -1302,17 +1305,20 @@
 .\" print the footer and eject new page
 .ev pg*tl-ev
 address@hidden
+.vpt 0
 .\" user defined end-of-page macro
 .ie d EOP .EOP
 .el \{\
-.      vpt 0
 .      ie o .tl \\*[pg*odd-footer]
 .      el .tl \\*[pg*even-footer]
+.      ds hd*format \\g[P]
+.      af P 0
 .      ie (\\n[P]=1)&(\\n[N]=1) .tl \\*[pg*header]
 .      el .tl \\*[pg*footer]
+.      af P \\*[hd*format]
 .      tl ''address@hidden''
-.      vpt 1
 .\}
+.vpt 1
 .ev
 .\" be sure that floating displays and footnotes will be
 .\" printed at the end of the document.

-Larry Jones

Like I'm going to get any sleep NOW. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]