GNU Info

Info Node: (m4.info)Divnum

(m4.info)Divnum


Next: Cleardiv Prev: Undivert Up: Diversions
Enter node , (file) or (file)node

Diversion numbers
=================

   The builtin `divnum':

     divnum

expands to the number of the current diversion.

     Initial divnum
     =>Initial 0
     divert(1)
     Diversion one: divnum
     divert(2)
     Diversion two: divnum
     divert
     =>
     ^D
     =>
     =>Diversion one: 1
     =>
     =>Diversion two: 2

   The last call of `divert' without argument is necessary, since the
undiverted text would otherwise be diverted itself.


automatically generated by info2www version 1.2.2.9