bug-texinfo
[Top][All Lists]
Advanced

[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 08:01:53 +0200

> 
> Does it work as you expect except for these warnings?  If so, we could
> figure some way to just turn off the warnings.

Yes, as far as I can tell, it does produce the expected output anyway.
After experimenting with it I came to the attached patch.  It
temporarily comments out the @ifnottex conditional so that makeinfo sees
the @top node and restores it after preprocessing, so that the node does
not appear in the output.  This way no diagnostics is issued when run on
my and Gavin's test files.  Trying it on GNU Pies docs works as well.

Regards,
Sergey

Index: util/texi2dvi
===================================================================
--- util/texi2dvi       (revision 6162)
+++ util/texi2dvi       (working copy)
@@ -1590,9 +1590,10 @@ comment_iftex=\
     s/address@hidden _texi2dvi//
   }
 }
-/address@hidden/,/address@hidden ifnottex/{
-  s/^/@c (_texi2dvi)/
-}
+/address@hidden/i\
address@hidden address@hidden
+/address@hidden ifnottex/i\
address@hidden address@hidden ifnottex
 /address@hidden/,/address@hidden ifinfo/{
   /address@hidden/p
   /address@hidden/,/address@hidden menu/p

reply via email to

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