[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spurious diagnostics from texi2dvi -E
From: |
Sergey Poznyakoff |
Subject: |
Re: Spurious diagnostics from texi2dvi -E |
Date: |
Wed, 04 Mar 2015 17:31:00 +0200 |
Hi Gavin,
> I found a way to break this patch by defining a macro within @iftex:
Thanks for spotting that out. Please find attached an improved patch.
Regards,
Sergey
Index: util/texi2dvi
===================================================================
--- util/texi2dvi (revision 6162)
+++ util/texi2dvi (working copy)
@@ -1574,6 +1574,10 @@ done
# (with address@hidden _texi2dvi') TeX sections so that makeinfo does not try
to
# parse them. Nevertheless, while commenting TeX sections, don't
# comment @macro/@end macro so that makeinfo does propagate them.
+# Similarly, preserve the @top node to avoid makeinfo complaining about
+# it being missed. Comment it out after preprocessing, so that it does
+# not appear in the generated document.
+#
# Unfortunately makeinfo --iftex --no-ifinfo doesn't work well enough
# (yet), makeinfo can't parse the TeX commands, so work around with sed.
#
@@ -1592,6 +1596,10 @@ comment_iftex=\
}
/address@hidden/,/address@hidden ifnottex/{
s/^/@c (_texi2dvi)/
+ /address@hidden (_texi2dvi)@node Top/,/address@hidden (_texi2dvi)@end
ifnottex/ {
+ /address@hidden (_texi2dvi)@end ifnottex/b
+ s/address@hidden (_texi2dvi)//
+ }
}
/address@hidden/,/address@hidden ifinfo/{
/address@hidden/p
@@ -1604,8 +1612,11 @@ s/address@hidden ifnotinfo/@c address@hidden ifnot
# Uncommenting is simpler: remove any leading address@hidden texi2dvi';
repeated
# copies can sneak in via macro invocations.
-uncomment_iftex='s/address@hidden _texi2dvi\(@c _texi2dvi\)*//'
-
+uncomment_iftex=\
+'s/address@hidden _texi2dvi\(@c _texi2dvi\)*//
+/address@hidden (_texi2dvi)@ifnottex/,/address@hidden (_texi2dvi)@end
ifnottex/{
+ s/^/@c (_texi2dvi)/
+}'
# Main program continues - command line parsing.
#
- Spurious diagnostics from texi2dvi -E, Sergey Poznyakoff, 2015/03/02
- Re: Spurious diagnostics from texi2dvi -E, Karl Berry, 2015/03/02
- Re: Spurious diagnostics from texi2dvi -E, Sergey Poznyakoff, 2015/03/04
- Re: Spurious diagnostics from texi2dvi -E, Gavin Smith, 2015/03/04
- Re: Spurious diagnostics from texi2dvi -E,
Sergey Poznyakoff <=
- Re: Spurious diagnostics from texi2dvi -E, Gavin Smith, 2015/03/04
- Re: Spurious diagnostics from texi2dvi -E, Gavin Smith, 2015/03/04
- Re: Spurious diagnostics from texi2dvi -E, Karl Berry, 2015/03/04
- Re: Spurious diagnostics from texi2dvi -E, Sergey Poznyakoff, 2015/03/05
- Re: Spurious diagnostics from texi2dvi -E, Sergey Poznyakoff, 2015/03/04
Re: Spurious diagnostics from texi2dvi -E, Gavin Smith, 2015/03/03