CVSROOT:        /cvsroot/groff
Module name:    groff
Changes by:     Werner LEMBERG <wl>     10/06/02 14:13:41

Modified files:
        contrib/mm     : ChangeLog m.tmac 

Log message:
        Fix .EOP handling and non-numeric format of \n[P].
        
        * m.tmac (p...@header): Set `.af' temporarily to numeric format.
        (p...@print-footer): Disable vertical traps for call to .EOP also.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/mm/ChangeLog?cvsroot=groff&r1=2.47&r2=2.48
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/mm/m.tmac?cvsroot=groff&r1=2.39&r2=2.40

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/contrib/mm/ChangeLog,v
retrieving revision 2.47
retrieving revision 2.48
diff -u -b -r2.47 -r2.48
--- ChangeLog   2 Jun 2010 14:05:50 -0000       2.47
+++ ChangeLog   2 Jun 2010 14:13:39 -0000       2.48
@@ -1,5 +1,12 @@
 Wed Jun  2 16:03:39 2010  Larry Jones <[email protected]>
 
+       Fix .EOP handling and non-numeric format of \n[P].
+
+       * m.tmac (p...@header): Set `.af' temporarily to numeric format.
+       (p...@print-footer): Disable vertical traps for call to .EOP also.
+
+Wed Jun  2 16:03:39 2010  Larry Jones <[email protected]>
+
        * m.tmac (t...@entry): Use MM page number (\nP).
 
 Sun May 30 07:14:15 2010  Larry Jones  <[email protected]>

Index: m.tmac
===================================================================
RCS file: /cvsroot/groff/groff/contrib/mm/m.tmac,v
retrieving revision 2.39
retrieving revision 2.40
diff -u -b -r2.39 -r2.40
--- m.tmac      2 Jun 2010 14:05:50 -0000       2.39
+++ m.tmac      2 Jun 2010 14:13:41 -0000       2.40
@@ -3,8 +3,8 @@
 .ds RE \\$2
 ..
 .\"
-.\" $Id: m.tmac,v 2.39 2010/06/02 14:05:50 wl Exp $
-...@revision $Revision: 2.39 $
+.\" $Id: m.tmac,v 2.40 2010/06/02 14:13:41 wl Exp $
+...@revision $Revision: 2.40 $
 .ig
 
 Copyright (C) 1991-2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
@@ -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
 ....@set-env
+.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 ''\\*[pg_type!\...@copy_type]]''
-.      vpt 1
 .\}
+.vpt 1
 .ev
 .\" be sure that floating displays and footnotes will be
 .\" printed at the end of the document.

_______________________________________________
Groff-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to