added emt catch for overlay pdp-11 systems
[unix-history] / usr / src / share / me / index.me
index 33de6c7..e546064 100644 (file)
@@ -1,26 +1,44 @@
 .nr _0 \n(c.
 .nr _0 \n(c.
-.\"    @(#)index.me    2.2     %G%
+.\"    @(#)index.me    2.5     %G%
 .\"    %beginstrip%
 .de (x                 \" *** begin index entry
 .\"    %beginstrip%
 .de (x                 \" *** begin index entry
-.ds |X x
-.if \\n(.$ \
-.      ds |X \\$1
-.am %\\*(|X )x
-.sp \\n(xsu
+.\" please note these cases MUST be in this order
+.ie !"\\n(.z"" \
+\{\
+.      ev 2                    \" if in a diversion, save & process later
+\!.(x \\$1
+.\}
+.el \
+\{\
+.      ds |X x
+.      if \\n(.$ \
+.              ds |X \\$1
+.      am %\\*(|X )x
+.      sp \\n(xsu
+.\}
 ..
 .de )x                 \" *** end index entry
 ..
 .de )x                 \" *** end index entry
-.ds |x \\n%
-.if \\n(.$ \
-.      ds |x \\$1
-.if "\\*(|x"_" \
-.      ig ..
-.am %\\*(|X ..
-.if \w"\\$2">(\\n(.l-\\n(.i-\\n(.k) \
-.      ti +\\n(xuu
+.ie "\\n(.z"" \
+\{\
+.      ds |x \\n%
+.      if \\n(.$ \
+.              ds |x \\$1
+.      if "\\*(|x"_" \
+.              ig ..
+.      am %\\*(|X ..
+.      if \w"\\$2">(\\n(.l-\\n(.i-\\n(.k) \
+.              ti +\\n(xuu
 \\\\a\\\\t\\$2\\*(|x
 ...
 \\\\a\\\\t\\$2\\*(|x
 ...
-.rm |x
-.rm |X
+.      rm |x
+.      rm |X
+.\}
+.el \
+\{\
+.      br                      \" if in a diversion, save & process later
+\!.)x \\$1 \\$2
+.      ev
+.\}
 ..
 .de xp                 \" *** print the index
 .br
 ..
 .de xp                 \" *** print the index
 .br